Lines Matching refs:pages

76     // get all pages in this dokuwiki site (!: includes nonexistent pages)
98 // the end($stack) always points the pages that contain
100 $pages = end($stack);
102 foreach (array_keys($pages) as $id) {
134 $pages = array_splice($stack, -2);
135 if ($pages === []) {
138 $stack[] = ft_resultCombine($pages);
141 $pages = array_splice($stack, -2);
142 if ($pages === []) {
145 $stack[] = ft_resultUnite($pages);
148 $pages = array_pop($stack);
149 $stack[] = ft_resultComplement([$pages_all, $pages]);
183 * @param bool $ignore_perms Ignore the fact that pages are hidden or read-protected
184 * @return array The pages that contain links to the given page
208 * Returns the pages that use a given media file
217 * @param bool $ignore_perms Ignore hidden pages and acls (optional, default: false)
218 * @return array A list of pages that use the given media file
277 * Returns list of pages as array(pageid => First Heading)
304 $pages = [];
308 if (!isset($pages[$p_id]))
309 $pages[$p_id] = p_get_first_heading($p_id, METADATA_DONT_RENDER);
314 if (!isset($pages[$p_id]))
315 $pages[$p_id] = p_get_first_heading($p_id, METADATA_DONT_RENDER);
321 foreach (array_keys($pages) as $p_id) {
323 unset($pages[$p_id]);
328 foreach (array_keys($pages) as $p_id) {
330 unset($pages[$p_id]);
335 // discard hidden pages
336 // discard nonexistent pages
338 foreach (array_keys($pages) as $idx) {
343 unset($pages[$idx]);
347 $pages = _ft_filterResultsByTime($pages, $data['after'], $data['before']);
349 uksort($pages, 'ft_pagesorter');
350 return $pages;
406 * Sort pages based on their namespace level first, then on their string
407 * values. This makes higher hierarchy pages rank higher than lower hierarchy
408 * pages.
427 * Sort pages by their mtime, from newest to oldest
719 * e.g. a query [ aa "bb cc" @dd:ee ] means "search pages which contain