MediaWiki master
PageReference.php
Go to the documentation of this file.
1<?php
21namespace MediaWiki\Page;
22
24
51interface PageReference extends WikiAwareEntity {
52
59 public function getWikiId();
60
69 public function getNamespace(): int;
70
83 public function getDBkey(): string;
84
95 public function isSamePageAs( PageReference $other ): bool;
96
103 public function __toString(): string;
104
105}
Marker interface for entities aware of the wiki they belong to.
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
getNamespace()
Returns the page's namespace number.
getDBkey()
Get the page title in DB key form.
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.
__toString()
Returns an informative human readable unique representation of the page identity, for use as a cache ...