Lines Matching refs:pages

46             'core.listPages' => new ApiCall([$this, 'listPages'], 'pages'),
47 'core.searchPages' => new ApiCall([$this, 'searchPages'], 'pages'),
48 'core.getRecentPageChanges' => new ApiCall([$this, 'getRecentPageChanges'], 'pages'),
50 'core.getPage' => (new ApiCall([$this, 'getPage'], 'pages')),
51 'core.getPageHTML' => (new ApiCall([$this, 'getPageHTML'], 'pages')),
52 'core.getPageInfo' => (new ApiCall([$this, 'getPageInfo'], 'pages')),
53 'core.getPageHistory' => new ApiCall([$this, 'getPageHistory'], 'pages'),
54 'core.getPageLinks' => new ApiCall([$this, 'getPageLinks'], 'pages'),
55 'core.getPageBackLinks' => new ApiCall([$this, 'getPageBackLinks'], 'pages'),
57 'core.lockPages' => new ApiCall([$this, 'lockPages'], 'pages'),
58 'core.unlockPages' => new ApiCall([$this, 'unlockPages'], 'pages'),
59 'core.savePage' => new ApiCall([$this, 'savePage'], 'pages'),
60 'core.appendPage' => new ApiCall([$this, 'appendPage'], 'pages'),
232 // region pages
235 * List all pages in the given namespace (and below)
237 * Setting the `depth` to `0` and the `namespace` to `""` will return all pages in the wiki.
244 * @return Page[] A list of matching pages
253 // shortcut for all pages
263 // run our search iterator to get the pages
283 * Get all pages at once
287 * @return Page[] A list of all pages
293 $pages = idx_get_indexer()->getPages();
294 Sort::ksort($pages);
296 foreach (array_keys($pages) as $idx) {
297 $perm = auth_quickaclcheck($pages[$idx]);
298 if ($perm < AUTH_READ || isHiddenPage($pages[$idx]) || !page_exists($pages[$idx])) {
302 $page = new Page($pages[$idx], 0, 0, '', null, $perm);
322 * @return PageHit[] A list of matching pages
328 $pages = [];
340 $pages[] = new PageHit(
347 return $pages;
353 * Returns a list of recent changes to wiki pages. The results can be limited to changes newer than
466 * The number of returned pages is set by `$conf['recent']`, but non accessible revisions pages
561 * Only links from pages readable by the current user are returned. The page itself
565 * @return string[] A list of pages linking to the given page
577 * Lock the given set of pages
579 * This call will try to lock all given pages. It will return a list of pages that were
583 * You should always ensure that the list of returned pages matches the given list of
584 * pages. It's up to you to decide how to handle failed locking.
586 * Note: you can only lock pages that you have write access for. It is possible to create
591 * operations on multiple pages, locking them all at once beforehand can be useful.
593 * @param string[] $pages A list of pages to lock
594 * @return string[] A list of pages that were successfully locked
596 public function lockPages($pages)
600 foreach ($pages as $id) {
613 * Unlock the given set of pages
615 * This call will try to unlock all given pages. It will return a list of pages that were
619 * You should always ensure that the list of returned pages matches the given list of
620 * pages. It's up to you to decide how to handle failed unlocking.
622 * Note: you can only unlock pages that you have write access for.
624 * @param string[] $pages A list of pages to unlock
625 * @return string[] A list of pages that were successfully unlocked
627 public function unlockPages($pages)
631 foreach ($pages as $id) {
683 // autoset summary on new pages
688 // autoset summary on deleted pages
880 * Returns the pages that use a given media file
889 * @return string[] A list of pages linking to the given page