Lines Matching refs:page
70 'desc' => 'returns the tag links of a given page',
140 * @param string $id page id
257 foreach ($pages as $page) {
259 if($this->isNotVisible($page, $ns)) continue;
261 $pageTags = $this->getTagsFromPageMetadata($page);
266 $meta = p_get_metadata($page);
268 $perm = auth_quickaclcheck($page);
281 $sortkey = $page;
284 $pos = strrpos($page, ':');
286 $sortkey = "\0".$page;
288 $sortkey = substr_replace($page, "\0\0", $pos, 1);
293 $sortkey = noNS($page);
298 $sortkey = str_replace('_', ' ', noNS($page));
308 'id' => $page,
338 * @param array $pages The pages that shall be filtered, each page needs to be an array with a key "id"
350 foreach ($pages as $key => $page) {
351 if (!in_array($page['id'], $allMatchedPages)) {
407 foreach ($pages as $page) {
408 $ns = getNS($page);
415 foreach ($pages as $page) {
417 if(strpos($page, $ns.':') === 0 ) {
435 * @param string $id the page id
450 * @return array the matching page ids
453 $result = []; // array of page ids
619 * @param string $id the page id
621 * @return bool if the page is shown
628 * Check visibility of the page
630 * @param string $id the page id
632 * @return bool if the page is hidden
651 // hide if ns is not matching the page id (match gives strpos===0)
671 * Check if the page is a real candidate for the result of the getTopic by comparing its tags with the wanted tags
673 * @param string[] $pageTags cleaned tags from the metadata of the page
734 * @return array the matching page ids
747 * @param string $id the page id