MediaWiki master
|
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 ) |
Definition at line 26 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 117 of file WikiPageFactory.php.
MediaWiki\Page\WikiPageFactory::newFromLinkTarget | ( | LinkTarget | $title | ) |
Create a WikiPage object from a link target.
LinkTarget | $title |
Definition at line 86 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 101 of file WikiPageFactory.php.
MediaWiki\Page\WikiPageFactory::newFromTitle | ( | PageIdentity | $pageIdentity | ) |
Create a WikiPage object from a title.
PageIdentity | $pageIdentity |
Definition at line 42 of file WikiPageFactory.php.
Referenced by MediaWiki\Page\DeletePage\__construct(), MediaWiki\Content\ContentModelChange\__construct(), MediaWiki\Storage\DerivedPageDataUpdater\__construct(), and MediaWiki\Storage\PageUpdater\__construct().