Manual:PageReferenceValue.php
Appearance
MediaWiki file: PageReferenceValue.php | |
---|---|
Location: | includes/page/ |
Source code: | master • 1.42.3 • 1.41.4 • 1.39.10 |
Classes: | MediaWiki\Page\PageReferenceValue |
Immutable value object representing a page reference. Implements {[ll|Manual:PageReference.php|PageReference}}.
- Instances of this class are expected to always represent viewable pages, that is, pages that can at least potentially be visited on the wiki. This class may represent Special pages, but not interwiki links, section links, etc.
- Code that deserializes instances of this class must ensure that the original meaning of the "local" Wiki ID is preserved: When an instance of
PageReferenceValue
is created withself::LOCAL
as the Wiki ID on one wiki, gets serialized, stored, and later read and unserialized on another wiki, the value of the Wiki ID must be adjusted to refer to the original wiki.
Public methods
[edit]- localReference() - create PageReference for a local page.
- getWikiId()
- getNamespace()
- getDBkey()
- isSamePageAs()
- __toString()