Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Store\RevisionBasedEntityLookup Class Reference

An implementation of EntityLookup based on an EntityRevisionLookup. More...

+ Inheritance diagram for Wikibase\Lib\Store\RevisionBasedEntityLookup:
+ Collaboration diagram for Wikibase\Lib\Store\RevisionBasedEntityLookup:

Public Member Functions

 __construct (EntityRevisionLookup $lookup, string $lookupMode=LookupConstants::LATEST_FROM_REPLICA)
 
 getEntity (EntityId $entityId)
 
 hasEntity (EntityId $entityId)
 

Private Attributes

 $lookup
 
 $lookupMode
 

Detailed Description

An implementation of EntityLookup based on an EntityRevisionLookup.

This implementation does not resolve redirects.

Author
Daniel Kinzler

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Store\RevisionBasedEntityLookup::__construct ( EntityRevisionLookup  $lookup,
string  $lookupMode = LookupConstants::LATEST_FROM_REPLICA 
)

Member Function Documentation

◆ getEntity()

Wikibase\Lib\Store\RevisionBasedEntityLookup::getEntity ( EntityId  $entityId)
See also
EntityLookup::getEntity
Parameters
EntityId$entityId
Exceptions
EntityLookupException
Returns
EntityDocument|null

Implements Wikibase\DataModel\Services\Lookup\EntityLookup.

◆ hasEntity()

Wikibase\Lib\Store\RevisionBasedEntityLookup::hasEntity ( EntityId  $entityId)
See also
EntityLookup::hasEntity
Parameters
EntityId$entityId
Exceptions
EntityLookupException
Returns
bool

Implements Wikibase\DataModel\Services\Lookup\EntityLookup.

Member Data Documentation

◆ $lookup

Wikibase\Lib\Store\RevisionBasedEntityLookup::$lookup
private

◆ $lookupMode

Wikibase\Lib\Store\RevisionBasedEntityLookup::$lookupMode
private

The documentation for this class was generated from the following file: