Wikibase
MediaWiki Wikibase extension
|
Service interface for retrieving Entities from storage. More...
Public Member Functions | |
getEntity (EntityId $entityId) | |
hasEntity (EntityId $entityId) | |
Returns whether the given entity can bee looked up using getEntity(). | |
Service interface for retrieving Entities from storage.
Wikibase\DataModel\Services\Lookup\EntityLookup::getEntity | ( | EntityId | $entityId | ) |
EntityId | $entityId |
EntityLookupException |
Implemented in Wikibase\Lib\Store\RevisionBasedEntityLookup, Wikibase\DataModel\Services\Lookup\DisabledEntityTypesEntityLookup, Wikibase\DataModel\Services\Lookup\ExceptionIgnoringEntityLookup, Wikibase\DataModel\Services\Lookup\InMemoryEntityLookup, Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup, and Wikibase\DataModel\Services\Lookup\RestrictedEntityLookup.
Wikibase\DataModel\Services\Lookup\EntityLookup::hasEntity | ( | EntityId | $entityId | ) |
Returns whether the given entity can bee looked up using getEntity().
This avoids loading and deserializing entity content just to check whether the entity exists.
EntityId | $entityId |
EntityLookupException |
Implemented in Wikibase\Lib\Store\RevisionBasedEntityLookup, Wikibase\DataModel\Services\Lookup\DisabledEntityTypesEntityLookup, Wikibase\DataModel\Services\Lookup\ExceptionIgnoringEntityLookup, Wikibase\DataModel\Services\Lookup\InMemoryEntityLookup, Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup, and Wikibase\DataModel\Services\Lookup\RestrictedEntityLookup.