MediaWiki REL1_37
PageLookup.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\Page;
4
6use InvalidArgumentException;
8
14interface PageLookup extends IDBAccessObject {
15
29 public function getPageForLink(
30 LinkTarget $link,
31 int $queryFlags = self::READ_NORMAL
33
43 public function getPageById(
44 int $pageId,
45 int $queryFlags = self::READ_NORMAL
47
58 public function getPageByName(
59 int $namespace,
60 string $dbKey,
61 int $queryFlags = self::READ_NORMAL
63
77 public function getPageByText(
78 string $text,
79 int $defaultNamespace = NS_MAIN,
80 int $queryFlags = self::READ_NORMAL
82
97 public function getExistingPageByText(
98 string $text,
99 int $defaultNamespace = NS_MAIN,
100 int $queryFlags = self::READ_NORMAL
102
115 public function getPageByReference(
116 PageReference $page,
117 int $queryFlags = self::READ_NORMAL
119
120}
const NS_MAIN
Definition Defines.php:64
Interface for database access objects.
Data record representing a page that currently exists as an editable page on a wiki.
Service interface for looking up infermation about wiki pages.
getExistingPageByText(string $text, int $defaultNamespace=NS_MAIN, int $queryFlags=self::READ_NORMAL)
Returns an ExistingPageRecord for a given user provided page name text.
getPageByName(int $namespace, string $dbKey, int $queryFlags=self::READ_NORMAL)
Returns the PageRecord for the given name and namespace.
getPageById(int $pageId, int $queryFlags=self::READ_NORMAL)
Returns the PageRecord of the given page.
getPageByText(string $text, int $defaultNamespace=NS_MAIN, int $queryFlags=self::READ_NORMAL)
Returns a PageIdentity for a given user provided page name text.
getPageForLink(LinkTarget $link, int $queryFlags=self::READ_NORMAL)
Returns the PageIdentity for the given LinkTarget.
getPageByReference(PageReference $page, int $queryFlags=self::READ_NORMAL)
Returns the PageRecord of the given page.
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
Interface for objects representing a page that is (or could be, or used to be) an editable page on a ...