MediaWiki REL1_40
|
Interface for a page that is (or could be, or used to be) an editable wiki page. More...
Inherits MediaWiki\Page\PageIdentity.
Inherited by MediaWiki\Page\PageIdentityValue, and MediaWiki\Page\PageRecord.
Public Member Functions | |
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. | |
Public Member Functions inherited from MediaWiki\Page\PageIdentity | |
exists () | |
Checks if the page currently exists. | |
Public Member Functions inherited from 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. | |
getNamespace () | |
Returns the page's namespace number. | |
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 a page that is (or could be, or used to be) an editable wiki page.
Definition at line 42 of file ProperPageIdentity.php.
MediaWiki\Page\ProperPageIdentity::canExist | ( | ) |
Always true.
Implementations must ensure that no "improper" instances can be created.
Implements MediaWiki\Page\PageIdentity.
Implemented in MediaWiki\Page\PageIdentityValue, and WikiPage.
MediaWiki\Page\ProperPageIdentity::getDBkey | ( | ) |
Get the page title in DB key form.
This should always return a valid DB key.
Implements MediaWiki\Page\PageReference.
Implemented in WikiPage.
MediaWiki\Page\ProperPageIdentity::getId | ( | $wikiId = self::LOCAL | ) |
Returns the page ID.
Will return 0 if the page does not currently exist.
string | false | $wikiId | Must be provided when accessing the ID of a non-local PageIdentity, to prevent data corruption when using a PageIdentity belonging to one wiki in the context of another. Should be omitted if expecting the local wiki. |
PreconditionException | if this PageIdentity does not belong to the wiki identified by $wikiId. |
Implements MediaWiki\Page\PageIdentity.
Implemented in MediaWiki\Page\PageIdentityValue, and WikiPage.
Referenced by PoolWorkArticleViewCurrent\__construct(), and MediaWiki\Preferences\MultiTitleFilter\filterFromForm().
MediaWiki\Page\ProperPageIdentity::getWikiId | ( | ) |
Get the ID of the wiki this page belongs to.
Implements MediaWiki\Page\PageReference.
Implemented in WikiPage.