MediaWiki REL1_39
MediaWiki\DAO Namespace Reference

Classes

interface  WikiAwareEntity
 Marker interface for entities aware of the wiki they belong to. More...
 

Functions

 assertWiki ( $wikiId)
 Throws if $wikiId is not the same as this entity wiki.
 
 assertWikiIdParam ( $wikiId)
 Asserts correct $wikiId parameter was passed.
 
 deprecateInvalidCrossWiki ( $wikiId, string $since)
 Emits a deprecation warning $since version if $wikiId is not the same as this wiki.
 

Variables

trait WikiAwareEntityTrait
 

Function Documentation

◆ assertWiki()

MediaWiki\DAO\assertWiki (   $wikiId)

Throws if $wikiId is not the same as this entity wiki.

Parameters
string | false$wikiIdThe wiki ID expected by the caller.
Exceptions
PreconditionException

Definition at line 55 of file WikiAwareEntityTrait.php.

◆ assertWikiIdParam()

MediaWiki\DAO\assertWikiIdParam (   $wikiId)
protected

Asserts correct $wikiId parameter was passed.

Parameters
string | false$wikiId

Definition at line 89 of file WikiAwareEntityTrait.php.

◆ deprecateInvalidCrossWiki()

MediaWiki\DAO\deprecateInvalidCrossWiki (   $wikiId,
string  $since 
)
protected

Emits a deprecation warning $since version if $wikiId is not the same as this wiki.

Parameters
string | false$wikiId
string$since

Definition at line 71 of file WikiAwareEntityTrait.php.

References wfDeprecatedMsg().

Variable Documentation

◆ WikiAwareEntityTrait

trait MediaWiki::DAO\WikiAwareEntityTrait
Initial value:
{
abstract public function getWikiId()

Definition at line 32 of file WikiAwareEntityTrait.php.