MediaWiki master
|
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki. More...
Inherits Stringable, and MediaWiki\DAO\WikiAwareEntity.
Inherited by MediaWiki\Page\PageIdentity, and MediaWiki\Page\PageReferenceValue.
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 52 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 MediaWiki\Title\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 MediaWiki\Title\Title.
Referenced by JobSpecification\__construct(), MediaWiki\Deferred\LinksUpdate\LinksDeletionUpdate\__construct(), MediaWiki\Output\OutputPage\getJSVars(), MediaWiki\Revision\ArchivedRevisionLookup\getLastRevisionId(), MediaWiki\Specials\SpecialExport\getPagesFromCategory(), MediaWiki\Category\CategoryViewer\getSubcategorySortChar(), MediaWiki\Revision\ArchivedRevisionLookup\listRevisions(), RecentChange\newForCategorization(), MediaWiki\Category\Category\newFromRow(), MediaWiki\Revision\RevisionStore\newRevisionsFromBatch(), WikiExporter\pageByTitle(), and MediaWiki\Language\LanguageConverter\updateConversionTable().
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 MediaWiki\Title\Title.
Referenced by JobSpecification\__construct(), MediaWiki\Deferred\LinksUpdate\LinksDeletionUpdate\__construct(), MediaWiki\Output\OutputPage\buildBacklinkSubtitle(), MediaWiki\Output\OutputPage\getJSVars(), MediaWiki\Revision\ArchivedRevisionLookup\getLastRevisionId(), MediaWiki\EditPage\TextboxBuilder\getTextboxProtectionCSSClasses(), MediaWiki\Revision\ArchivedRevisionLookup\listRevisions(), RecentChange\newForCategorization(), MediaWiki\Revision\RevisionStore\newRevisionsFromBatch(), WikiExporter\pageByTitle(), MediaWiki\Language\LanguageConverter\updateConversionTable(), and MediaWiki\Page\RedirectStore\updateRedirectTarget().
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 MediaWiki\Title\Title.
Referenced by MediaWiki\Deferred\LinksUpdate\LinksDeletionUpdate\__construct().
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 MediaWiki\Title\Title.