MediaWiki 1.42.0
|
Service for creating WikiPage objects. More...
Public Member Functions | |
__construct (TitleFactory $titleFactory, WikiPageFactoryHook $wikiPageFactoryHookRunner, IConnectionProvider $dbProvider) | |
newFromID ( $id, $from='fromdb') | |
Create a WikiPage object from a page ID. | |
newFromLinkTarget (LinkTarget $title) | |
Create a WikiPage object from a link target. | |
newFromRow ( $row, $from='fromdb') | |
Create a WikiPage object from a database row. | |
newFromTitle (PageIdentity $pageIdentity) | |
Create a WikiPage object from a title. | |
MediaWiki\Page\WikiPageFactory::__construct | ( | TitleFactory | $titleFactory, |
WikiPageFactoryHook | $wikiPageFactoryHookRunner, | ||
IConnectionProvider | $dbProvider ) |
TitleFactory | $titleFactory | |
WikiPageFactoryHook | $wikiPageFactoryHookRunner | |
IConnectionProvider | $dbProvider |
Definition at line 34 of file WikiPageFactory.php.
MediaWiki\Page\WikiPageFactory::newFromID | ( | $id, | |
$from = 'fromdb' ) |
Create a WikiPage object from a page ID.
int | $id | Article ID to load |
string | int | $from | One of the following values:
|
Definition at line 125 of file WikiPageFactory.php.
MediaWiki\Page\WikiPageFactory::newFromLinkTarget | ( | LinkTarget | $title | ) |
Create a WikiPage object from a link target.
LinkTarget | $title |
Definition at line 94 of file WikiPageFactory.php.
MediaWiki\Page\WikiPageFactory::newFromRow | ( | $row, | |
$from = 'fromdb' ) |
Create a WikiPage object from a database row.
stdClass | $row | Database row containing at least fields returned by getQueryInfo(). |
string | int | $from | Source of $data:
|
Definition at line 109 of file WikiPageFactory.php.
MediaWiki\Page\WikiPageFactory::newFromTitle | ( | PageIdentity | $pageIdentity | ) |
Create a WikiPage object from a title.
PageIdentity | $pageIdentity |
Definition at line 50 of file WikiPageFactory.php.
Referenced by MediaWiki\Page\DeletePage\__construct().