Lines Matching refs:id
45 wikiFN($INFO['id']),
86 if ($event->data['unl']) $this->delete_entry($event->data['id'], self::DOCTYPE_MEDIA);
90 * Check if the page $id has changed since the last indexing.
92 * @param string $id
95 protected function needs_indexing($id) {
96 $indexStateFile = metaFN($id, '.elasticsearch_indexed');
97 $refreshStateFile = metaFN($id, '.elasticsearch_refresh');
98 $dataFile = wikiFN($id);
101 if (!file_exists($dataFile) || isHiddenPage($id)) {
104 $this->delete_entry($id, self::DOCTYPE_PAGE);
167 * @param string $id
171 protected function update_indexstate($id, $doctype = self::DOCTYPE_PAGE) {
173 mediaMetaFN($id, '.elasticsearch_indexed') :
174 metaFN($id, '.elasticsearch_indexed');
181 * @param $id
184 public function delete_entry($id, $doctype) {
190 $documentId = $doctype . '_' . $id;
203 mediaMetaFN($id, '.elasticsearch_indexed') :
204 metaFN($id, '.elasticsearch_indexed');
211 * @param $id
214 public function index_page($id) {
217 $this->log('Indexing page ' . $id);
220 $meta = p_get_metadata($id, '', METADATA_RENDER_UNLIMITED);
223 $data['uri'] = $id;
227 $data['title'] = $meta['title'] ?? $id;
229 $data['syntax'] = rawWiki($id);
237 $data['content'] = p_cached_output(wikiFN($id),'text');
246 $lc = $trans->getLangPart($id);
253 $data['namespace'] = getNS($id);
261 $fullACL = $hlpAcl->getPageACL($id);
314 * @param $id
317 protected function getPluginData($id): array
319 $pluginData = ['uri' => $id];