/plugin/struct/meta/ |
H A D | AccessTableGlobal.php | 14 public function __construct($table, $pid, $ts = 0, $rid = 0) argument 16 parent::__construct($table, $pid, $ts, $rid); 69 return "REPLACE INTO $this->mtable (pid, rid, rev, latest, colref, row, value) VALUES (?,?,?,?,?,?,?)"; 92 return ['pid', 'rev', 'latest']; 100 return [$this->pid, AccessTable::DEFAULT_REV, AccessTable::DEFAULT_LATEST]; 108 return [$this->pid, $this->rid, AccessTable::DEFAULT_REV, AccessTable::DEFAULT_LATEST]; 137 * @param string $pid 141 protected function handleEmptyMulti($pid, $rid, $colref) 145 "DELETE FROM $table WHERE pid = ? AND rid = ? AND colref = ?", 146 $pid, 134 handleEmptyMulti($pid, $rid, $colref) global() argument [all...] |
H A D | AccessTablePage.php | 16 public function __construct($schema, $pid, $ts = 0, $rid = 0) argument 19 parent::__construct($schema, $pid, $ts, $rid); 50 $where = "WHERE pid = ?"; 51 $opts = [$this->pid]; 83 "UPDATE $this->stable SET latest = 0 WHERE latest = 1 AND pid = ? AND rid = 0", 84 [$this->pid] 88 "UPDATE $this->mtable SET latest = 0 WHERE latest = 1 AND pid = ? AND rid = 0", 89 [$this->pid] 100 return ['rid, pid, rev, latest']; 108 return [self::DEFAULT_PAGE_RID, $this->pid, [all...] |
H A D | AccessTableSerial.php | 14 public function __construct($table, $pid, $ts = 0, $rid = 0) argument 19 parent::__construct($table, $pid, $ts, $rid);
|
H A D | AggregationTable.php | 350 $pid = $this->searchConfig->getPids()[$rownum]; 354 $this->renderer->doc .= ' data-pid="' . hsc($pid) . '" data-rev="' . $rev . '" data-rid="' . $rid . '">';
|
H A D | Assignments.php | 104 $sql = 'SELECT pid FROM schema_assignments WHERE tbl = ?'; 109 $tables = $this->getPageAssignments($row['pid'], true); 111 $this->deassignPageSchema($row['pid'], $table); 121 * @param string $pid argument 123 public function reevaluatePageAssignments($pid) 127 $tables = $this->getPageAssignments($pid, true); 130 $sql = 'SELECT tbl FROM schema_assignments WHERE pid = ?'; 131 $tablerows = $this->sqlite->queryAll($sql, [$pid]); 136 $this->assignPageSchema($pid, $row['tbl']); 138 $this->deassignPageSchema($pid, [all...] |
H A D | CSVExporter.php | 46 $pid = $pids[$i]; 48 $pid = ''; 50 echo $this->row($row, $pid); 65 $row .= $this->escape('pid'); 80 * @param string $pid pid of this row 83 protected function row($values, $pid) 87 $row .= $this->escape($pid); 82 row($values, $pid) global() argument
|
H A D | CSVImporter.php | 114 $pageType = new Page(null, 'pid'); 121 // just skip the checks for 'pid' but discard other columns not present in the schema 123 if ($head !== 'pid') { 211 // pid is a non-data column and must be supplied to the AccessTable separately 212 $pid = $data['pid'] ?? ''; 213 unset($data['pid']); 219 $helper->saveData($pid, [$table => $data], 'CSV data imported'); 223 $access = AccessTable::getSerialAccess($table, $pid);
|
H A D | CSVPageImporter.php | 13 * Import page schema only when the pid header is present. 18 if (!in_array('pid', $this->header)) 19 throw new StructException('There is no "pid" header in the CSV. Schema not imported.'); 30 $pid = cleanID($values[0]); 31 if (isset($this->createPage[$pid])) { 32 $this->createPage($pid, $values); 37 $pid, 49 * @param string $pid 52 protected function createPage($pid, $line) argument 54 $text = pageTemplate($pid); [all...] |
H A D | CSVSerialImporter.php | 11 * Import page schema only when the pid header is present. 16 if (!in_array('pid', $this->header)) 17 throw new StructException('There is no "pid" header in the CSV. Schema not imported.'); 28 $pid = cleanID($values[0]); 29 if ($this->createPage[$pid]) { 30 $this->createPage($pid, $values); 40 * @param string $pid 43 protected function createPage($pid, $line) argument 45 $text = pageTemplate($pid); 47 $pageParts = explode(':', $pid); [all...] |
H A D | PageMeta.php | 10 protected $pid; variable in dokuwiki\\plugin\\struct\\meta\\PageMeta 18 public function __construct($pid) argument 23 $this->pid = $pid; 41 $sql = "SELECT pid, title, lasteditor, lastrev, lastsummary FROM titles WHERE pid = ?"; 42 $data = $this->sqlite->queryRecord($sql, [$this->pid]); 51 $sql = "REPLACE INTO titles (pid, title, lasteditor, lastrev, lastsummary) VALUES (?,?,?,?,?)"; 52 $this->sqlite->query($sql, [$this->pid, $this->title, $this->lasteditor, $this->lastrev, $this->lastsummary]); 64 $title = noNS($this->pid); [all...] |
/plugin/struct/script/ |
H A D | AggregationEditor.js | 29 const pid = $me.data('pid'); 42 if (rid && pid && disableDeleteSerial) { 98 // if page id needs to be passed to backend, add pid 102 name: 'pid',
|
H A D | InlineEditor.js | 12 var pid = $self.parent().data('pid'); 17 if ((!pid && !rid) || !field) return; 25 $form.append(jQuery('<input type="hidden" name="pid">').val(pid)); 39 pid: pid, 101 pid: pid
|
/plugin/structnotification/action/ |
H A D | notification.php | 115 $pid = $result_pids[$i]; 127 'id' => $predicate['id'] . ':'. $schema . ':' . $pid . ':' . $rawDate,
|
/plugin/structodt/ |
H A D | action.php | 171 $pid = $INPUT->str('pid'); 177 $row = $helper->getRow($schema, $pid, $rev, $rid); 179 throw new \Exception("Row with id: $pid doesn't exists"); 183 $filename = empty($pid) ? $rid : noNS($pid);
|
H A D | helper.php | 44 * @param $pid 99 * @param $pid 224 * Get rows data, optionally filtered by pid 245 * Get single row by pid 248 * @param $pid 251 public function getRow($table, $pid, $rev, $rid) { argument 255 if (AccessTable::isTypePage($pid, $rev)) { 256 $search->addFilter('%pageid%', $pid, '='); 257 } elseif (AccessTable::isTypeSerial($pid, $rev)) { 258 $search->addFilter('%pageid%', $pid, ' [all...] |
H A D | script.js | 33 const pid = $me.data('pid'); 51 url.searchParams.append('pid', pid);
|
/plugin/structpublish/_test/ |
H A D | revision.test.php | 56 $pid = 'public:structpublish'; 57 $ID = $pid; 58 $INFO['id'] = $pid; 62 saveWikiText($pid, $text, 'Save first draft'); 67 $revision = new Revision($pid, $currentrev); 97 saveWikiText($pid, "$text $text", 'Save second draft');
|
/plugin/structpublish/db/ |
H A D | update0001.sql | 9 pid TEXT NOT NULL, field 13 PRIMARY KEY(pid, user, status)
|
/plugin/structpublish/helper/ |
H A D | db.php | 50 $sql = 'SELECT pid FROM titles'; argument 52 return array_column($list, 'pid'); 57 * If no pid is given, check current page. 61 public function isPublishable($pid = null) 69 if (!$pid) { 70 $pid = $ID; 73 $sql = 'SELECT pid FROM structpublish_assignments WHERE pid = ? AND assigned = 1'; 74 return (bool) $sqlite->queryAll($sql, $pid); 80 * @param string $pid Th 91 userHasRole($pid, $userId = '', $grps = [], $roles = []) global() argument [all...] |
/plugin/structpublish/meta/ |
H A D | AccessTableStructpublish.php | 49 return ['pid', 'rev', 'latest', 'published']; 55 return [$this->pid, AccessTable::DEFAULT_REV, AccessTable::DEFAULT_LATEST, $this->published]; 65 $where = "WHERE pid = ?"; 66 $opts = [$this->pid]; 91 "UPDATE $this->stable SET latest = 0 WHERE latest = 1 AND pid = ?", 92 [$this->pid]
|
H A D | Assignments.php | 90 foreach ($pids as $pid) { 91 $this->updatePageAssignments($pid); 120 $sql = 'SELECT pid FROM structpublish_assignments WHERE user = ? AND status = ?'; 126 $ok = $ok && $this->deassignPage($row['pid'], $user, $status); 135 * @param string $pid 137 public function updatePageAssignments($pid, $reload = false) argument 142 $rules = $this->getPageAssignments($pid, true); 146 $this->assignPage($pid, $user, $status); 189 $sql = 'REPLACE INTO structpublish_assignments (pid, user, status, assigned) VALUES (?, ?, ?, 1)'; 202 $sql = 'UPDATE structpublish_assignments SET assigned = 0 WHERE pid [all...] |
H A D | Revision.php | 212 * @param string $pid 215 protected function updateCoreData($pid, $rid = 0) 225 $access = new AccessTableStructpublish($schema, $pid, 0, $rid); 213 updateCoreData($pid, $rid = 0) global() argument
|
/plugin/structsection/lib/ |
H A D | bundle.js | 1 …pid:i,field:n,rid:0,rev:p},(function(e){e&&(r.prepend(e),t.closest(".dokuwiki").append(u),u.positi…
|
/plugin/structsection/script/ |
H A D | main.js | 19 const pid = JSINFO.id; 24 if (!pid) return; 33 $form.append(jQuery('<input type="hidden" name="pid">').val(pid)); 47 pid, 104 pid,
|
/plugin/structstatus/ |
H A D | script.js | 15 pid: $self.parent().data('page'), property in AnonymousFunctione2c426950200.data
|