Wikibase
MediaWiki Wikibase extension
Wikibase\Lib\Store\EntityExistenceChecker Interface Reference
+ Inheritance diagram for Wikibase\Lib\Store\EntityExistenceChecker:

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...
 

Detailed Description

Member Function Documentation

◆ exists()

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.

Parameters
EntityId$id
Returns
bool

Implemented in Wikibase\Repo\FederatedProperties\ApiEntityExistenceChecker, Wikibase\Lib\Store\TypeDispatchingExistenceChecker, and Wikibase\Lib\Store\TitleLookupBasedEntityExistenceChecker.

◆ existsBatch()

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.

Parameters
EntityId[]$ids
Returns
bool[] Mapping from entity ID serialization to exists() result.

Implemented in Wikibase\Repo\FederatedProperties\ApiEntityExistenceChecker, Wikibase\Lib\Store\TypeDispatchingExistenceChecker, and Wikibase\Lib\Store\TitleLookupBasedEntityExistenceChecker.


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