Lines Matching full:pages
64 * Returns list of pages as array(pageid => First Heading)
79 // find pages matching by page name
80 $pages = [];
87 $pages[$page] = p_get_first_heading($page, METADATA_DONT_RENDER);
91 // additionally find pages matching by title
103 if (!isset($pages[$page])) {
104 $pages[$page] = $titles[0];
110 $pages = static::filterPages($pages, false, $data['after'], $data['before']);
111 uksort($pages, $this->pagesorter(...));
112 return $pages;
116 …* Return a list of all indexed pages, optionally limited to those that have a specific metadata key
118 … * When a key is given, only pages that have any value stored for that metadata key are returned.
121 * @param string|null $key metadata key name, or null for all pages
138 * Find pages containing a metadata value
181 * @param bool $ignore_perms Ignore the fact that pages are hidden or read-protected
182 * @return string[] The pages that contain links to the given page
200 * Returns the pages that use a given media file
203 * @param bool $ignore_perms Ignore hidden pages and acls (optional, default: false)
204 * @return string[] A list of pages that use the given media file
222 * Filter a list of pages by visibility, existence, permissions, and time range
224 * @param array $pages pages to filter (keys are page IDs)
226 * @param int|string|null $after only keep pages modified after this date
227 * @param int|string|null $before only keep pages modified before this date
228 * @return array filtered pages
231 array $pages, argument
239 … return array_filter($pages, static function ($value, $id) use ($ignorePerms, $after, $before) {
258 * Sort pages based on their namespace level first, then on their string
259 * values. This makes higher hierarchy pages rank higher than lower hierarchy
260 * pages.