Exemplo n.º 1
0
 /**
  * Creates the inline editor
  */
 protected function inline_editor()
 {
     // silently fail when editing not possible
     if (!$this->initFromInput()) {
         return;
     }
     if (auth_quickaclcheck($this->pid) < AUTH_EDIT) {
         return;
     }
     if (!$this->schemadata->getSchema()->isEditable()) {
         return;
     }
     if (checklock($this->pid)) {
         return;
     }
     // lock page
     lock($this->pid);
     // output the editor
     $value = $this->schemadata->getDataColumn($this->column);
     echo '<label data-column="' . hsc($this->column->getFullQualifiedLabel()) . '">';
     echo $value->getValueEditor('entry');
     echo '</label>';
     $hint = $this->column->getType()->getTranslatedHint();
     if ($hint) {
         echo '<div class="hint">';
         echo hsc($hint);
         echo '</div>';
     }
     // csrf protection
     formSecurityToken();
 }