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