Lines Matching refs:this

47         $controller->register_hook('AJAX_CALL_UNKNOWN', 'BEFORE', $this, 'handleAjax');
62 $this->inlineEditor();
67 $this->inlineSave();
76 $this->inlineCancel();
86 if (!$this->initFromInput()) return;
87 if (!$this->schemadata->getSchema()->isEditable()) return;
89 if ($this->pid && auth_quickaclcheck($this->pid) < AUTH_EDIT) return;
90 if (checklock($this->pid)) return;
93 lock($this->pid);
96 $value = $this->schemadata->getDataColumn($this->column);
99 echo '<label data-column="' . hsc($this->column->getFullQualifiedLabel()) . '" for="' . $id . '">';
104 $hint = $this->column->getType()->getTranslatedHint();
124 if (!$this->initFromInput()) {
128 if (!$this->schemadata->getRid()) {
129 $this->checkPage();
131 $tables = $assignments->getPageAssignments($this->pid, true);
132 if (!in_array($this->schemadata->getSchema()->getTable(), $tables)) {
136 if (!$this->schemadata->getSchema()->isEditable()) {
143 if (!$validator->validateValue($this->column, $value)) {
148 $tosave = $this->schemadata->getDataArray();
149 $tosave[$this->column->getLabel()] = $value;
152 if ($this->schemadata->getRid()) {
155 $revision = helper_plugin_struct::createPageRevision($this->pid, 'inline edit');
156 p_get_metadata($this->pid); // reparse the metadata of the page top update the titles/rev/lasteditor table
158 $this->schemadata->setTimestamp($revision);
160 if (!$this->schemadata->saveData($tosave)) {
163 if (!$this->schemadata->getRid()) {
164 // make sure this schema is assigned
167 $this->pid,
168 $this->schemadata->getSchema()->getTable()
177 unlock($this->pid);
181 $this->initFromInput($this->schemadata->getTimestamp());
182 $value = $this->schemadata->getDataColumn($this->column);
185 $data = json_encode(['value' => $R->doc, 'rev' => $this->schemadata->getTimestamp()], JSON_THROW_ON_ERROR);
209 $this->schemadata = null;
210 $this->column = null;
221 $this->pid = $pid;
224 $this->schemadata = AccessTable::getPageAccess($table, $pid);
226 $this->schemadata = AccessTable::getSerialAccess($table, $pid, $rid);
228 $this->schemadata = AccessTable::getGlobalAccess($table, $rid);
234 $this->column = $this->schemadata->getSchema()->findColumn($field);
235 if (!$this->column || !$this->column->isVisibleInEditor()) {
236 $this->schemadata = null;
237 $this->column = null;
251 if (!page_exists($this->pid)) {
254 if (auth_quickaclcheck($this->pid) < AUTH_EDIT) {
257 if (checklock($this->pid)) {