Wikibase
MediaWiki Wikibase extension
|
Public Member Functions | |
exists (EntityId $id) | |
This exists check returns true, iff an entity has both been created and not deleted, i.e. More... | |
existsBatch (array $ids) | |
Checks if a batch of entities exists at once. More... | |
Wikibase\Lib\Store\EntityExistenceChecker::exists | ( | EntityId | $id | ) |
This exists check returns true, iff an entity has both been created and not deleted, i.e.
deleted entities do not exist.
EntityId | $id |
Implemented in Wikibase\Lib\Store\TitleLookupBasedEntityExistenceChecker, and Wikibase\Lib\Store\SourceAndTypeDispatchingExistenceChecker.
Wikibase\Lib\Store\EntityExistenceChecker::existsBatch | ( | array | $ids | ) |
Checks if a batch of entities exists at once.
This is equivalent to iterating over $ids and calling exists() for each, but may be more efficient, depending on implementation.
EntityId[] | $ids |
Implemented in Wikibase\Repo\FederatedProperties\ApiEntityExistenceChecker, Wikibase\Lib\Store\TitleLookupBasedEntityExistenceChecker, and Wikibase\Lib\Store\SourceAndTypeDispatchingExistenceChecker.