Lines Matching full:this
25 'page' => ['rev' => $this->getRev()],
26 'rev' => ['rev' => $this->getRev(), 'do' => 'revisions'],
28 default => ['rev' => $this->getRev(), 'do' => 'diff'],
31 return wl($this->getId(), $opt, true, '&');
41 $diff = $this->getDiff();
47 $diff = $this->getDiff();
51 … $content .= '<tr><th colspan="2" width="50%">' . dformat($this->getPrev()) . '</th>';
58 if ($this->isExisting()) {
59 $html = p_wiki_xhtml($this->getId(), '', false);
61 $html = p_wiki_xhtml($this->getId(), $this->getRev(), false);
63 return $this->cleanHTML($html);
67 return $this->getAbstract();
74 $meta = $this->getMetaData();
75 return (array)($meta['subject'] ?? (string)getNS($this->getId()));
89 if (!isset($this->data['abstract'])) {
90 $meta = $this->getMetaData();
92 $this->data['abstract'] = (string)$meta['description']['abstract'];
94 $this->data['abstract'] = '';
97 return $this->data['abstract'];
106 if (page_exists($this->id)) {
107 $this->data['rev'] = filemtime(wikiFN($this->id));
108 $this->data['exists'] = true;
110 $this->loadRevisions();
112 return $this->data['rev'];
116 * Get the previous revision timestamp of this page
122 if ($this->data['prev'] ?? 0) return $this->data['prev'];
123 $this->loadRevisions();
124 return $this->data['prev'];
128 * Does this page exist?
134 if (!isset($this->data['exists'])) {
135 $this->data['exists'] = page_exists($this->id);
137 return $this->data['exists'];
141 * Get the title of this page
148 if (!isset($this->data['title'])) {
150 $this->data['title'] = p_get_first_heading($this->id);
152 $this->data['title'] = noNS($this->id);
155 return $this->data['title'];
161 * Get the metadata of this page
167 if (!isset($this->meta)) {
168 $this->meta = (array)p_get_metadata($this->id);
170 return $this->meta;
179 $changelog = new PageChangeLog($this->id);
181 if (!isset($this->data['rev'])) {
184 $this->data['rev'] = $revs[0] ?? 0;
187 $this->data['prev'] = $revs[1] ?? null;
191 * Get a diff between this and the previous revision
197 $prev = $this->getPrev();
201 explode("\n", rawWiki($this->getId(), $prev)),
202 explode("\n", rawWiki($this->getId(), ''))
205 return new Diff([''], explode("\n", rawWiki($this->getId(), '')));