MediaWiki REL1_38
|
Public Member Functions | |
__construct (TitleFactory $titleFactory, WikiPageFactoryHook $wikiPageFactoryHookRunner, ILoadBalancer $loadBalancer) | |
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. | |
Private Attributes | |
ILoadBalancer | $loadBalancer |
TitleFactory | $titleFactory |
WikiPageFactoryHook | $wikiPageFactoryHookRunner |
Definition at line 19 of file WikiPageFactory.php.
MediaWiki\Page\WikiPageFactory::__construct | ( | TitleFactory | $titleFactory, |
WikiPageFactoryHook | $wikiPageFactoryHookRunner, | ||
ILoadBalancer | $loadBalancer | ||
) |
TitleFactory | $titleFactory | |
WikiPageFactoryHook | $wikiPageFactoryHookRunner | |
ILoadBalancer | $loadBalancer |
Definition at line 35 of file WikiPageFactory.php.
References MediaWiki\Page\WikiPageFactory\$loadBalancer, MediaWiki\Page\WikiPageFactory\$titleFactory, and MediaWiki\Page\WikiPageFactory\$wikiPageFactoryHookRunner.
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 128 of file WikiPageFactory.php.
MediaWiki\Page\WikiPageFactory::newFromLinkTarget | ( | LinkTarget | $title | ) |
Create a WikiPage object from a link target.
LinkTarget | $title |
Definition at line 97 of file WikiPageFactory.php.
References $title.
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 112 of file WikiPageFactory.php.
MediaWiki\Page\WikiPageFactory::newFromTitle | ( | PageIdentity | $pageIdentity | ) |
Create a WikiPage object from a title.
PageIdentity | $pageIdentity |
Definition at line 52 of file WikiPageFactory.php.
Referenced by MediaWiki\Page\DeletePage\__construct().
|
private |
Definition at line 28 of file WikiPageFactory.php.
Referenced by MediaWiki\Page\WikiPageFactory\__construct().
|
private |
Definition at line 22 of file WikiPageFactory.php.
Referenced by MediaWiki\Page\WikiPageFactory\__construct().
|
private |
Definition at line 25 of file WikiPageFactory.php.
Referenced by MediaWiki\Page\WikiPageFactory\__construct().