MediaWiki REL1_39
|
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki. More...
Public Member Functions | |
__toString () | |
Returns an informative human readable unique representation of the page identity, for use as a cache key and for logging and debugging. | |
getDBkey () | |
Get the page title in DB key form. | |
getNamespace () | |
Returns the page's namespace number. | |
getWikiId () | |
Get the ID of the wiki this page belongs to. | |
isSamePageAs (PageReference $other) | |
Checks whether the given PageReference refers to the same page as this PageReference. | |
Public Member Functions inherited from MediaWiki\DAO\WikiAwareEntity | |
assertWiki ( $wikiId) | |
Throws if $wikiId is different from the return value of getWikiId(). | |
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
This includes special pages.
The identity of any PageReference object is defined by the namespace, the dbkey, and the wiki ID. If the wiki ID is self::LOCAL, the identity is relative to the local wiki.
Definition at line 49 of file PageReference.php.
MediaWiki\Page\PageReference::__toString | ( | ) |
Returns an informative human readable unique representation of the page identity, for use as a cache key and for logging and debugging.
Implemented in MediaWiki\Page\PageReferenceValue, WikiPage, and Title.
Referenced by MediaWiki\Revision\RevisionStore\getKnownCurrentRevision().
MediaWiki\Page\PageReference::getDBkey | ( | ) |
Get the page title in DB key form.
Implemented in MediaWiki\Page\PageReferenceValue, MediaWiki\Page\ProperPageIdentity, WikiPage, and Title.
Referenced by JobSpecification\__construct(), MediaWiki\Revision\ArchivedRevisionLookup\getLastRevisionId(), CategoryViewer\getSubcategorySortChar(), MediaWiki\Revision\ArchivedRevisionLookup\listRevisions(), RecentChange\newForCategorization(), Category\newFromRow(), MediaWiki\Revision\RevisionStore\newRevisionsFromBatch(), and WikiExporter\pageByTitle().
MediaWiki\Page\PageReference::getNamespace | ( | ) |
Returns the page's namespace number.
The value returned by this method should represent a valid namespace, but this cannot be guaranteed in all cases.
Implemented in MediaWiki\Page\PageReferenceValue, WikiPage, and Title.
Referenced by JobSpecification\__construct(), OutputPage\buildBacklinkSubtitle(), MediaWiki\Revision\ArchivedRevisionLookup\getLastRevisionId(), MediaWiki\EditPage\TextboxBuilder\getTextboxProtectionCSSClasses(), MediaWiki\Revision\ArchivedRevisionLookup\listRevisions(), RecentChange\newForCategorization(), MediaWiki\Revision\RevisionStore\newRevisionsFromBatch(), and WikiExporter\pageByTitle().
MediaWiki\Page\PageReference::getWikiId | ( | ) |
Get the ID of the wiki this page belongs to.
Implements MediaWiki\DAO\WikiAwareEntity.
Implemented in MediaWiki\Page\PageReferenceValue, MediaWiki\Page\ProperPageIdentity, WikiPage, and Title.
MediaWiki\Page\PageReference::isSamePageAs | ( | PageReference | $other | ) |
Checks whether the given PageReference refers to the same page as this PageReference.
Two PageReference instances are considered to refer to the same page if they belong to the same wiki, and have the same namespace and DB key.
PageReference | $other |
Implemented in MediaWiki\Page\PageReferenceValue, WikiPage, and Title.