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(). More... | |
Service interface for retrieving Entities from storage.
Wikibase\DataModel\Services\Lookup\EntityLookup::getEntity | ( | EntityId | $entityId | ) |
EntityId | $entityId |
EntityLookupException |
Implemented in Wikibase\DataModel\Services\Lookup\RestrictedEntityLookup, Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup, Wikibase\DataModel\Services\Lookup\InMemoryEntityLookup, Wikibase\DataModel\Services\Lookup\ExceptionIgnoringEntityLookup, Wikibase\DataModel\Services\Lookup\DispatchingEntityLookup, Wikibase\DataModel\Services\Lookup\DisabledEntityTypesEntityLookup, and Wikibase\Lib\Store\RevisionBasedEntityLookup.
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\DataModel\Services\Lookup\RestrictedEntityLookup, Wikibase\DataModel\Services\Lookup\RedirectResolvingEntityLookup, Wikibase\DataModel\Services\Lookup\InMemoryEntityLookup, Wikibase\DataModel\Services\Lookup\ExceptionIgnoringEntityLookup, Wikibase\DataModel\Services\Lookup\DispatchingEntityLookup, Wikibase\DataModel\Services\Lookup\DisabledEntityTypesEntityLookup, and Wikibase\Lib\Store\RevisionBasedEntityLookup.