Lines Matching full:pages

50             'core.listPages' => new ApiCall($this->listPages(...), 'pages'),
51 'core.searchPages' => new ApiCall($this->searchPages(...), 'pages'),
52 'core.getRecentPageChanges' => new ApiCall($this->getRecentPageChanges(...), 'pages'),
54 'core.getPage' => (new ApiCall($this->getPage(...), 'pages')),
55 'core.getPageHTML' => (new ApiCall($this->getPageHTML(...), 'pages')),
56 'core.getPageInfo' => (new ApiCall($this->getPageInfo(...), 'pages')),
57 'core.getPageHistory' => new ApiCall($this->getPageHistory(...), 'pages'),
58 'core.getPageLinks' => new ApiCall($this->getPageLinks(...), 'pages'),
59 'core.getPageBackLinks' => new ApiCall($this->getPageBackLinks(...), 'pages'),
61 'core.lockPages' => new ApiCall($this->lockPages(...), 'pages'),
62 'core.unlockPages' => new ApiCall($this->unlockPages(...), 'pages'),
63 'core.savePage' => new ApiCall($this->savePage(...), 'pages'),
64 'core.appendPage' => new ApiCall($this->appendPage(...), 'pages'),
236 // region pages
239 * List all pages in the given namespace (and below)
241 * Setting the `depth` to `0` and the `namespace` to `""` will return all pages in the wiki.
248 * @return Page[] A list of matching pages
257 // shortcut for all pages
267 // run our search iterator to get the pages
287 * Get all pages at once
291 * @return Page[] A list of all pages
297 $pages = (new Indexer())->getAllPages();
298 Sort::ksort($pages);
300 foreach (array_keys($pages) as $idx) {
301 $perm = auth_quickaclcheck($pages[$idx]);
302 if ($perm < AUTH_READ || isHiddenPage($pages[$idx]) || !page_exists($pages[$idx])) {
306 $page = new Page($pages[$idx], 0, 0, '', null, $perm);
326 * @return PageHit[] A list of matching pages
333 $pages = [];
345 $pages[] = new PageHit(
352 return $pages;
358 … * Returns a list of recent changes to wiki pages. The results can be limited to changes newer than
471 * The number of returned pages is set by `$conf['recent']`, but non accessible revisions
566 * Only links from pages readable by the current user are returned. The page itself
570 * @return string[] A list of pages linking to the given page
581 * Lock the given set of pages
583 * This call will try to lock all given pages. It will return a list of pages that were
587 * You should always ensure that the list of returned pages matches the given list of
588 * pages. It's up to you to decide how to handle failed locking.
590 * Note: you can only lock pages that you have write access for. It is possible to create
595 * operations on multiple pages, locking them all at once beforehand can be useful.
597 * @param string[] $pages A list of pages to lock
598 * @return string[] A list of pages that were successfully locked
600 public function lockPages($pages) argument
604 foreach ($pages as $id) {
617 * Unlock the given set of pages
619 * This call will try to unlock all given pages. It will return a list of pages that were
623 * You should always ensure that the list of returned pages matches the given list of
624 * pages. It's up to you to decide how to handle failed unlocking.
626 * Note: you can only unlock pages that you have write access for.
628 * @param string[] $pages A list of pages to unlock
629 * @return string[] A list of pages that were successfully unlocked
631 public function unlockPages($pages) argument
635 foreach ($pages as $id) {
687 // autoset summary on new pages
692 // autoset summary on deleted pages
899 * Returns the pages that use a given media file
908 * @return string[] A list of pages linking to the given page