Inherits MediaWiki\Page\PageLookup.
|
| __construct (ServiceOptions $options, ILoadBalancer $dbLoadBalancer, NamespaceInfo $namespaceInfo, TitleParser $titleParser, ?LinkCache $linkCache, ?StatsdDataFactoryInterface $stats, $wikiId=WikiAwareEntity::LOCAL) |
|
| getExistingPageByText (string $text, int $defaultNamespace=NS_MAIN, int $queryFlags=self::READ_NORMAL) |
|
| getPageById (int $pageId, int $queryFlags=self::READ_NORMAL) |
|
| getPageByName (int $namespace, string $dbKey, int $queryFlags=self::READ_NORMAL) |
|
| getPageByReference (PageReference $page, int $queryFlags=self::READ_NORMAL) |
|
| getPageByText (string $text, int $defaultNamespace=NS_MAIN, int $queryFlags=self::READ_NORMAL) |
|
| getPageForLink (LinkTarget $link, int $queryFlags=self::READ_NORMAL) |
|
| getSelectFields () |
|
| getSubpages (PageIdentity $page, int $limit) |
| Get all subpages of this page.
|
|
| newPageRecordFromRow (stdClass $row) |
|
| newSelectQueryBuilder ( $dbOrFlags=self::READ_NORMAL) |
|
- Since
- 1.36
- Stability: unstable
Definition at line 28 of file PageStore.php.
◆ __construct()
◆ getExistingPageByText()
MediaWiki\Page\PageStore::getExistingPageByText |
( |
string | $text, |
|
|
int | $defaultNamespace = NS_MAIN, |
|
|
int | $queryFlags = self::READ_NORMAL ) |
- Since
- 1.37
- Parameters
-
string | $text | |
int | $defaultNamespace | Namespace to assume per default (usually NS_MAIN) |
int | $queryFlags | |
- Returns
- ExistingPageRecord|null
Implements MediaWiki\Page\PageLookup.
Definition at line 274 of file PageStore.php.
◆ getPageById()
MediaWiki\Page\PageStore::getPageById |
( |
int | $pageId, |
|
|
int | $queryFlags = self::READ_NORMAL ) |
◆ getPageByName()
MediaWiki\Page\PageStore::getPageByName |
( |
int | $namespace, |
|
|
string | $dbKey, |
|
|
int | $queryFlags = self::READ_NORMAL ) |
◆ getPageByReference()
MediaWiki\Page\PageStore::getPageByReference |
( |
PageReference | $page, |
|
|
int | $queryFlags = self::READ_NORMAL ) |
- Parameters
-
PageReference | $page | |
int | $queryFlags | |
- Returns
- ExistingPageRecord|null The page's PageRecord, or null if the page was not found.
Implements MediaWiki\Page\PageLookup.
Definition at line 313 of file PageStore.php.
◆ getPageByText()
MediaWiki\Page\PageStore::getPageByText |
( |
string | $text, |
|
|
int | $defaultNamespace = NS_MAIN, |
|
|
int | $queryFlags = self::READ_NORMAL ) |
- Since
- 1.37
- Parameters
-
string | $text | |
int | $defaultNamespace | Namespace to assume per default (usually NS_MAIN) |
int | $queryFlags | |
- Returns
- ProperPageIdentity|null
Implements MediaWiki\Page\PageLookup.
Definition at line 250 of file PageStore.php.
◆ getPageForLink()
MediaWiki\Page\PageStore::getPageForLink |
( |
LinkTarget | $link, |
|
|
int | $queryFlags = self::READ_NORMAL ) |
◆ getSelectFields()
MediaWiki\Page\PageStore::getSelectFields |
( |
| ) |
|
◆ getSubpages()
MediaWiki\Page\PageStore::getSubpages |
( |
PageIdentity | $page, |
|
|
int | $limit ) |
Get all subpages of this page.
Will return an empty list of the namespace doesn't support subpages.
- Parameters
-
PageIdentity | $page | |
int | $limit | Maximum number of subpages to fetch |
- Returns
- Iterator<ExistingPageRecord>
Definition at line 433 of file PageStore.php.
◆ newPageRecordFromRow()
MediaWiki\Page\PageStore::newPageRecordFromRow |
( |
stdClass | $row | ) |
|
- Access: internal
- Parameters
-
- Returns
- ExistingPageRecord
Definition at line 354 of file PageStore.php.
◆ newSelectQueryBuilder()
MediaWiki\Page\PageStore::newSelectQueryBuilder |
( |
| $dbOrFlags = self::READ_NORMAL | ) |
|
- Stability: unstable
- Parameters
-
IDatabase | int | $dbOrFlags | The database connection to use, or a READ_XXX constant indicating what kind of database connection to use. |
- Returns
- PageSelectQueryBuilder
Definition at line 401 of file PageStore.php.
◆ CONSTRUCTOR_OPTIONS
const MediaWiki\Page\PageStore::CONSTRUCTOR_OPTIONS |
Initial value:= [
]
const PageLanguageUseDB
Name constant for the PageLanguageUseDB setting, for use with Config::get()
- Access: internal
- for use by service wiring
Definition at line 54 of file PageStore.php.
The documentation for this class was generated from the following file: