Lines Matching refs:pages
278 $pages = $this->getPages();
280 $id = array_search($oldpage, $pages, true);
286 $new_id = array_search($newpage, $pages, true);
293 $pages[$new_id] = 'deleted:' . time() . random_int(0, 9999);
296 $pages[$id] = $newpage;
299 if (!$this->saveIndex('page', '', $pages)) {
312 * Renames a meta value in the index. This doesn't change the meta value in the pages, it assumes that all pages
577 // avoid expensive addIndexKey operation for the most recently requested pages by using a cache
599 * Find pages in the fulltext index containing the words,
630 // merge found pages into final result array
652 * Find pages containing a metadata key.
737 // load all lines and pages so the used lines can be taken and matched with the pages
743 $pages = array_keys($this->parseTuples($page_idx, $lines[$value_id]));
745 $result[$val] = [...$result[$val], ...$pages];
841 * Return a list of all pages
842 * Warning: pages may not exist!
844 * @param string $key list only pages containing the metadata key (optional)
865 $pages = [];
868 $pages = array_merge($pages, $this->parseTuples($page_idx, $line));
870 return array_keys($pages);