MediaWiki 1.42.1
WikiAwareEntity.php
Go to the documentation of this file.
1<?php
2
3namespace MediaWiki\DAO;
4
8use Wikimedia\Assert\PreconditionException;
9
35interface WikiAwareEntity {
36
41 public const LOCAL = false;
42
52 public function assertWiki( $wikiId );
53
60 public function getWikiId();
61}
Page revision base class.
Marker interface for entities aware of the wiki they belong to.
assertWiki( $wikiId)
Throws if $wikiId is different from the return value of getWikiId().
getWikiId()
Get the ID of the wiki this page belongs to.
Interface for objects (potentially) representing an editable wiki page.
Interface for objects representing user identity.