MediaWiki  master
PageIdentity.php
Go to the documentation of this file.
1 <?php
21 namespace MediaWiki\Page;
22 
23 use RuntimeException;
24 use Wikimedia\Assert\PreconditionException;
25 
64 interface PageIdentity extends PageReference {
65 
96  public function getId( $wikiId = self::LOCAL ): int;
97 
117  public function canExist(): bool;
118 
131  public function exists(): bool;
132 
133 }
Page\PageIdentity
Interface for objects (potentially) representing an editable wiki page.
Definition: PageIdentity.php:64
Page\PageIdentity\getId
getId( $wikiId=self::LOCAL)
Returns the page ID.
Page\PageReference
Interface for objects (potentially) representing a page that can be viewable and linked to on a wiki.
Definition: PageReference.php:49
Page\PageIdentity\exists
exists()
Checks if the page currently exists.
MediaWiki\Page
Definition: ContentModelChangeFactory.php:23
Page\PageIdentity\canExist
canExist()
Checks whether this PageIdentity represents a "proper" page, meaning that it could exist as an editab...