Lines Matching full:this

26                 $opt = ['rev' => $this->getRev()];
29 $opt = ['rev' => $this->getRev(), 'do' => 'revisions'];
36 $opt = ['rev' => $this->getRev(), 'do' => 'diff'];
39 return wl($this->getId(), $opt, true, '&');
49 $diff = $this->getDiff();
55 $diff = $this->getDiff();
59 … $content .= '<tr><th colspan="2" width="50%">' . dformat($this->getPrev()) . '</th>';
66 if ($this->isExisting()) {
67 $html = p_wiki_xhtml($this->getId(), '', false);
69 $html = p_wiki_xhtml($this->getId(), $this->getRev(), false);
71 return $this->cleanHTML($html);
75 return $this->getAbstract();
82 $meta = $this->getMetaData();
83 return (array)($meta['subject'] ?? (string)getNS($this->getId()));
97 if (!isset($this->data['abstract'])) {
98 $meta = $this->getMetaData();
100 $this->data['abstract'] = (string)$meta['description']['abstract'];
102 $this->data['abstract'] = '';
105 return $this->data['abstract'];
114 if (page_exists($this->id)) {
115 $this->data['rev'] = filemtime(wikiFN($this->id));
116 $this->data['exists'] = true;
118 $this->loadRevisions();
120 return $this->data['rev'];
124 * Get the previous revision timestamp of this page
130 if ($this->data['prev'] ?? 0) return $this->data['prev'];
131 $this->loadRevisions();
132 return $this->data['prev'];
136 * Does this page exist?
142 if (!isset($this->data['exists'])) {
143 $this->data['exists'] = page_exists($this->id);
145 return $this->data['exists'];
149 * Get the title of this page
156 if (!isset($this->data['title'])) {
158 $this->data['title'] = p_get_first_heading($this->id);
160 $this->data['title'] = noNS($this->id);
163 return $this->data['title'];
169 * Get the metadata of this page
175 if (!isset($this->meta)) {
176 $this->meta = (array)p_get_metadata($this->id);
178 return $this->meta;
187 $changelog = new PageChangeLog($this->id);
189 if (!isset($this->data['rev'])) {
192 $this->data['rev'] = $revs[0] ?? 0;
195 $this->data['prev'] = $revs[1] ?? null;
199 * Get a diff between this and the previous revision
205 $prev = $this->getPrev();
209 explode("\n", rawWiki($this->getId(), $prev)),
210 explode("\n", rawWiki($this->getId(), ''))
213 return new Diff([''], explode("\n", rawWiki($this->getId(), '')));