Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 117) sorted by relevance

12345

/plugin/struct/meta/
H A DCSVPageImporter.php13 * 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 DCSVSerialImporter.php11 * 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 DAccessTable.php19 protected $pid; variable in dokuwiki\\plugin\\struct\\meta\\AccessTable
57 public static function getPageAccess($tablename, $pid, $ts = 0) argument
60 return new AccessTablePage($schema, $pid, $ts, 0);
63 public static function getSerialAccess($tablename, $pid, $rid = 0) argument
66 return new AccessTableSerial($schema, $pid, 0, $rid);
79 * @param string $pid Page id to access
85 public static function bySchema(Schema $schema, $pid, $ts = 0, $rid = 0) argument
87 if (self::isTypePage($pid, $ts)) {
88 return new AccessTablePage($schema, $pid, $ts, $rid);
90 return new AccessTableGlobal($schema, $pid,
104 byTableName($tablename, $pid, $ts = 0, $rid = 0) global() argument
124 __construct($schema, $pid, $ts = 0, $rid = 0) global() argument
585 isTypePage($pid, $rev) global() argument
598 isTypeGlobal($pid, $rev) global() argument
611 isTypeSerial($pid, $rev) global() argument
624 handleEmptyMulti($pid, $rid, $colref) global() argument
[all...]
H A DPageMeta.php10 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...]
H A DAccessTablePage.php16 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 DAccessTableGlobal.php14 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 DCSVExporter.php46 $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
/plugin/struct/action/
H A Dinline.php34 protected $pid = '';
88 // only check page permissions for data with pid, skip for global data
89 if ($this->pid && auth_quickaclcheck($this->pid) < AUTH_EDIT) return;
90 if (checklock($this->pid)) return;
93 lock($this->pid);
131 $tables = $assignments->getPageAssignments($this->pid, true);
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
167 $this->pid,
31 protected $pid = ''; global() variable in action_plugin_struct_inline
[all...]
/plugin/subjectindex/inc/
H A Dcommon.php36 function add($path, $pid) { argument
38 $this->pids[] = $pid;
70 $pid = $this->pids[$key];
71 $result = array($path, $pid );
100 * @param null $pid
111 if ($pid !== null) {
227 if (isset($missing_pids[$pid]) || ! SI_Utils::is_valid_page($all_pages[$pid])) {
231 foreach ($missing_pids as $pid) {
232 foreach ($pid as $key)
289 $pid = array();
[all …]
/plugin/tagging/db/
H A Dupdate0002.sql5 CREATE TABLE taggings_tmp (pid, tag, tagger, PRIMARY KEY(pid, tag, tagger)); field
6 INSERT INTO taggings_tmp SELECT pid, tag, tagger FROM taggings;
10 CREATE TABLE taggings (pid, tag, tagger, lang, PRIMARY KEY(pid, tag, tagger)); field
11 INSERT INTO taggings SELECT pid, tag, tagger, '' FROM taggings_tmp;
14 CREATE INDEX idx_taggings_pid ON taggings(pid);
/plugin/blogtng/db/
H A Dupdate0004.sql4 pid, field
15 SELECT cid, pid, source, name, mail, web, avatar, created, text, status
22 pid, field
34 CREATE INDEX idx_comments_pid ON comments(pid);
38 SELECT cid, pid, source, name, mail, web, avatar, created, text, status, null
45 pid PRIMARY KEY, field
57 SELECT pid, page, title, blog, image, created, lastmod, author, login, email
63 pid PRIMARY KEY, field
75 CREATE UNIQUE INDEX idx_entries_pid ON entries(pid);
81 SELECT pid, page, title, blog, image, created, lastmod, author, login, email, 1
H A Dupdate0001.sql2 pid PRIMARY KEY, field
13 CREATE UNIQUE INDEX idx_entries_pid ON entries(pid);
20 pid, field
31 CREATE INDEX idx_comments_pid ON comments(pid);
35 pid, field
37 PRIMARY KEY (pid, tag)
39 CREATE INDEX idx_tags_pid ON tags(pid);
H A Dupdate0005.sql3 pid PRIMARY KEY, field
15 SELECT pid, page, title, blog, image, created, lastmod, author, login, mail
21 pid PRIMARY KEY, field
33 CREATE UNIQUE INDEX idx_entries_pid ON entries(pid);
39 SELECT pid, page, title, blog, image, created, lastmod, author, login, mail, 'enabled'
/plugin/structpublish/helper/
H A Ddb.php50 $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/blogtng/helper/
H A Dtags.php17 private $pid = null; variable in helper_plugin_blogtng_tags
29 * @param string $pid
31 public function setPid($pid) { argument
32 $this->pid = trim($pid);
59 public function load($pid) { argument
60 $this->setPid($pid);
71 $resid = $this->sqlitehelper->getDB()->query($query, $this->pid);
97 public function count($pid) { argument
103 $pid = trim($pid);
108 $resid = $this->sqlitehelper->getDB()->query($query, $pid);
[all …]
H A Dcomments.php20 private $pid; variable in helper_plugin_blogtng_comments
34 public function setPid($pid) { argument
35 $this->pid = trim($pid);
79 $args[] = $this->pid;
440 public function enable($pid) { argument
456 public function close($pid) { argument
467 * @param string $pid
556 if(!$this->pid) return;
587 $pid = $this->pid;
588 if(!$pid) return;
[all …]
/plugin/data-au/_test/
H A Daction_handle.test.php45 $pid = $this->getTestPageId();
46 $this->assertFalse(!$pid);
62 $pid = $this->db->res2single($res);
63 $this->assertTrue(!$pid);
69 $pid = (int) $this->db->res2single($res);
70 return $pid;
/plugin/data/_test/
H A Daction_handle.test.php
/plugin/tagging/helper/
H A Dquerybuilder.php18 protected $pid; variable in helper_plugin_tagging_querybuilder
21 * FIXME consolidate pid (current page query) and pids (global search query)
49 return ($this->field === 'pid') ? $this->getPages() : $this->getTags();
61 $this->groupby = 'pid';
62 $this->orderby = "cnt DESC, pid";
139 * @param string $pid
141 public function setPid($pid) argument
143 $this->pid = $pid;
195 if ($this->pid) {
[all...]
/plugin/icalevents/vendor/sabre/vobject/resources/schema/
H A Dxcard.rng90 param-pid = element pid {
116 element parameters { param-altid, param-pid, param-pref,
195 param-pid,
209 element parameters { param-altid, param-pid, param-pref,
216 element parameters { param-altid, param-pid, param-pref,
223 element parameters { param-altid, param-pid, param-pref,
230 element parameters { param-altid, param-pid, param-pref,
237 element parameters { param-altid, param-pid, param-pref,
272 element parameters { param-altid, param-pid, param-pref,
281 param-pid,
[all …]
/plugin/webdav/vendor/sabre/vobject/resources/schema/
H A Dxcard.rng90 param-pid = element pid {
116 element parameters { param-altid, param-pid, param-pref,
195 param-pid,
209 element parameters { param-altid, param-pid, param-pref,
216 element parameters { param-altid, param-pid, param-pref,
223 element parameters { param-altid, param-pid, param-pref,
230 element parameters { param-altid, param-pid, param-pref,
237 element parameters { param-altid, param-pid, param-pref,
272 element parameters { param-altid, param-pid, param-pref,
281 param-pid,
[all …]
/plugin/struct/db/
H A Dupdate0008.sql3 pid NOT NULL, field
5 PRIMARY KEY(pid)
9 INSERT INTO titles SELECT DISTINCT pid, pid FROM schema_assignments;
/plugin/editions/
H A Daction.php55 $pid = $event->data['pid'];
56 if ($this->_isEdition() && $pid) {
65 $pid = $event->data['pid'];
66 if ($this->_isEdition() && $pid) {
67 $event->data['doc'] .= $this->_getEditionLinks($pid) . '</div>';
104 function _getEditionLinks($pid) { argument
113 $eLink = wl($this->getConf('editionNamespace').':'.$edition.':'.noNS($ID)).'#'.$pid;
121 $editionLinks .= '<div id="load__'.$pid.'" class="editions_snippet JSpopup"></div>';
/plugin/structpublish/meta/
H A DAssignments.php90 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...]
/plugin/struct/script/
H A DInlineEditor.js12 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

12345