MediaWiki REL1_37
|
Public Member Functions | |
__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) | |
Public Attributes | |
const | CONSTRUCTOR_OPTIONS |
Public Attributes inherited from IDBAccessObject | |
const | READ_NONE = -1 |
Constants for object loading bitfield flags (higher => higher QoS) | |
Private Member Functions | |
getDBConnectionRef (int $mode=DB_REPLICA) | |
getPageByNameViaLinkCache (int $namespace, string $dbKey, int $queryFlags=self::READ_NORMAL) | |
incrementStats (string $metric) | |
loadPageFromConditions (array $conds, int $queryFlags=self::READ_NORMAL) | |
Private Attributes | |
ILoadBalancer | $dbLoadBalancer |
LinkCache null | $linkCache |
NamespaceInfo | $namespaceInfo |
ServiceOptions | $options |
StatsdDataFactoryInterface | $stats |
TitleParser | $titleParser |
string false | $wikiId |
MediaWiki\Page\PageStore::__construct | ( | ServiceOptions | $options, |
ILoadBalancer | $dbLoadBalancer, | ||
NamespaceInfo | $namespaceInfo, | ||
TitleParser | $titleParser, | ||
?LinkCache | $linkCache, | ||
?StatsdDataFactoryInterface | $stats, | ||
$wikiId = WikiAwareEntity::LOCAL |
|||
) |
ServiceOptions | $options | |
ILoadBalancer | $dbLoadBalancer | |
NamespaceInfo | $namespaceInfo | |
TitleParser | $titleParser | |
?LinkCache | $linkCache | |
?StatsdDataFactoryInterface | $stats | |
false | string | $wikiId |
Definition at line 68 of file PageStore.php.
References MediaWiki\Page\PageStore\$dbLoadBalancer, MediaWiki\Page\PageStore\$linkCache, MediaWiki\Page\PageStore\$namespaceInfo, MediaWiki\Page\PageStore\$options, MediaWiki\Page\PageStore\$stats, MediaWiki\Page\PageStore\$titleParser, MediaWiki\Page\PageStore\$wikiId, and MediaWiki\Config\ServiceOptions\assertRequiredOptions().
|
private |
int | $mode | DB_PRIMARY or DB_REPLICA |
Definition at line 425 of file PageStore.php.
MediaWiki\Page\PageStore::getExistingPageByText | ( | string | $text, |
int | $defaultNamespace = NS_MAIN , |
||
int | $queryFlags = self::READ_NORMAL |
||
) |
string | $text | |
int | $defaultNamespace | Namespace to assume per default (usually NS_MAIN) |
int | $queryFlags |
Implements MediaWiki\Page\PageLookup.
Definition at line 271 of file PageStore.php.
MediaWiki\Page\PageStore::getPageById | ( | int | $pageId, |
int | $queryFlags = self::READ_NORMAL |
||
) |
int | $pageId | |
int | $queryFlags |
Implements MediaWiki\Page\PageLookup.
Definition at line 289 of file PageStore.php.
MediaWiki\Page\PageStore::getPageByName | ( | int | $namespace, |
string | $dbKey, | ||
int | $queryFlags = self::READ_NORMAL |
||
) |
int | $namespace | |
string | $dbKey | |
int | $queryFlags |
Implements MediaWiki\Page\PageLookup.
Definition at line 140 of file PageStore.php.
|
private |
int | $namespace | |
string | $dbKey | |
int | $queryFlags |
Definition at line 168 of file PageStore.php.
MediaWiki\Page\PageStore::getPageByReference | ( | PageReference | $page, |
int | $queryFlags = self::READ_NORMAL |
||
) |
PageReference | $page | |
int | $queryFlags |
Implements MediaWiki\Page\PageLookup.
Definition at line 310 of file PageStore.php.
MediaWiki\Page\PageStore::getPageByText | ( | string | $text, |
int | $defaultNamespace = NS_MAIN , |
||
int | $queryFlags = self::READ_NORMAL |
||
) |
string | $text | |
int | $defaultNamespace | Namespace to assume per default (usually NS_MAIN) |
int | $queryFlags |
Implements MediaWiki\Page\PageLookup.
Definition at line 247 of file PageStore.php.
MediaWiki\Page\PageStore::getPageForLink | ( | LinkTarget | $link, |
int | $queryFlags = self::READ_NORMAL |
||
) |
LinkTarget | $link | |
int | $queryFlags |
Implements MediaWiki\Page\PageLookup.
Definition at line 108 of file PageStore.php.
MediaWiki\Page\PageStore::getSelectFields | ( | ) |
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.
PageIdentity | $page | |
int | $limit | Maximum number of subpages to fetch |
Definition at line 438 of file PageStore.php.
|
private |
string | $metric |
Definition at line 98 of file PageStore.php.
|
private |
array | $conds | |
int | $queryFlags |
Definition at line 340 of file PageStore.php.
MediaWiki\Page\PageStore::newPageRecordFromRow | ( | stdClass | $row | ) |
stdClass | $row |
Definition at line 359 of file PageStore.php.
MediaWiki\Page\PageStore::newSelectQueryBuilder | ( | $dbOrFlags = self::READ_NORMAL | ) |
IDatabase | int | null | $dbOrFlags | The database connection to use, or a READ_XXX constant indicating what kind of database connection to use. |
Definition at line 406 of file PageStore.php.
|
private |
Definition at line 35 of file PageStore.php.
Referenced by MediaWiki\Page\PageStore\__construct().
|
private |
Definition at line 44 of file PageStore.php.
Referenced by MediaWiki\Page\PageStore\__construct().
|
private |
Definition at line 38 of file PageStore.php.
Referenced by MediaWiki\Page\PageStore\__construct().
|
private |
Definition at line 32 of file PageStore.php.
Referenced by MediaWiki\Page\PageStore\__construct().
|
private |
Definition at line 47 of file PageStore.php.
Referenced by MediaWiki\Page\PageStore\__construct().
|
private |
Definition at line 41 of file PageStore.php.
Referenced by MediaWiki\Page\PageStore\__construct().
|
private |
Definition at line 50 of file PageStore.php.
Referenced by MediaWiki\Page\PageStore\__construct().
const MediaWiki\Page\PageStore::CONSTRUCTOR_OPTIONS |
Definition at line 55 of file PageStore.php.