Manual:WikiPageFactory.php
Appearance
MediaWiki file: WikiPageFactory.php | |
---|---|
Location: | includes/page/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes: | MediaWiki\Page\WikiPageFactory |
Service for creating WikiPage objects. It can be instantiated with MediaWikiServices::getInstance()->getWikiPageFactory()
.
Methods
[edit]- newFromTitle() - create WikiPage object from Title object.
- newFromLinkTarget() - create WikiPage object from a link target.
- newFromRow() - create WikiPage object from a database row.
- newFromID() - create WikiPage object from a page ID.