MediaWiki  master
WikiAwareEntity.php
Go to the documentation of this file.
1 <?php
2 
3 namespace MediaWiki\DAO;
4 
8 use Wikimedia\Assert\PreconditionException;
9 
34 interface WikiAwareEntity {
35 
40  public const LOCAL = false;
41 
51  public function assertWiki( $wikiId );
52 
59  public function getWikiId();
60 }
Page\PageIdentity
Interface for objects (potentially) representing an editable wiki page.
Definition: PageIdentity.php:64
MediaWiki\Revision\RevisionRecord
Page revision base class.
Definition: RevisionRecord.php:47
MediaWiki\DAO\WikiAwareEntity
Marker interface for entities aware of the wiki they belong to.
Definition: WikiAwareEntity.php:34
MediaWiki\User\UserIdentity
Interface for objects representing user identity.
Definition: UserIdentity.php:39
MediaWiki\DAO
Definition: WikiAwareEntity.php:3
MediaWiki\DAO\WikiAwareEntity\assertWiki
assertWiki( $wikiId)
Throws if $wikiId is different from the return value of getWikiId().
MediaWiki\DAO\WikiAwareEntity\getWikiId
getWikiId()
Get the ID of the wiki this page belongs to.