MediaWiki REL1_37
|
Data record representing a page that is (or used to be, or could be) an editable page on a wiki. More...
Public Member Functions | |
getLanguage () | |
The page's language, if explicitly recorded. | |
getLatest ( $wikiId=self::LOCAL) | |
The ID of the page's latest revision. | |
getTouched () | |
Timestamp at which the page was last flagged for rerendering. | |
isNew () | |
False if the page has had more than one edit. | |
isRedirect () | |
True if the page is a redirect. | |
![]() | |
canExist () | |
Always true. | |
getDBkey () | |
Get the page title in DB key form. | |
getId ( $wikiId=self::LOCAL) | |
Returns the page ID. | |
getWikiId () | |
Get the ID of the wiki this page belongs to. | |
![]() | |
exists () | |
Checks if the page currently exists. | |
![]() | |
__toString () | |
Returns an informative human readable unique representation of the page identity, for use as a cache key and for logging and debugging. | |
getNamespace () | |
Returns the page's namespace number. | |
isSamePageAs (PageReference $other) | |
Checks whether the given PageReference refers to the same page as this PageReference. | |
![]() | |
assertWiki ( $wikiId) | |
Throws if $wikiId is different from the return value of getWikiId(). | |
Data record representing a page that is (or used to be, or could be) an editable page on a wiki.
Definition at line 25 of file PageRecord.php.
MediaWiki\Page\PageRecord::getLanguage | ( | ) |
The page's language, if explicitly recorded.
The effective page language needs to be determined programmatically.
Implemented in MediaWiki\Page\PageStoreRecord, and WikiPage.
MediaWiki\Page\PageRecord::getLatest | ( | $wikiId = self::LOCAL | ) |
The ID of the page's latest revision.
string | false | $wikiId | Must be provided when accessing the ID of the latest revision of a non-local PageRecord, to prevent data corruption when using a PageRecord belonging to one wiki in the context of another. Should be omitted if expecting the local wiki. |
Implemented in MediaWiki\Page\PageStoreRecord, and WikiPage.
Referenced by ParserCache\save(), and MediaWiki\Page\ParserOutputAccess\shouldUseCache().
MediaWiki\Page\PageRecord::getTouched | ( | ) |
Timestamp at which the page was last flagged for rerendering.
Implemented in MediaWiki\Page\PageStoreRecord, and WikiPage.
Referenced by ParserCache\checkExpired().
MediaWiki\Page\PageRecord::isNew | ( | ) |
False if the page has had more than one edit.
Implemented in MediaWiki\Page\PageStoreRecord, and WikiPage.
MediaWiki\Page\PageRecord::isRedirect | ( | ) |
True if the page is a redirect.
Implemented in MediaWiki\Page\PageStoreRecord, WikiFilePage, and WikiPage.
Referenced by ParserCache\get().