Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Lib\Store\SourceAndTypeDispatchingExistenceChecker Class Reference
+ Inheritance diagram for Wikibase\Lib\Store\SourceAndTypeDispatchingExistenceChecker:
+ Collaboration diagram for Wikibase\Lib\Store\SourceAndTypeDispatchingExistenceChecker:

Public Member Functions

 __construct (EntitySourceLookup $entitySourceLookup, ServiceBySourceAndTypeDispatcher $serviceBySourceAndTypeDispatcher)
 
 exists (EntityId $id)
 This exists check returns true, iff an entity has both been created and not deleted, i.e.
 
 existsBatch (array $ids)
 Checks if a batch of entities exists at once.
 

Private Attributes

 $entitySourceLookup
 
 $serviceBySourceAndTypeDispatcher
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lib\Store\SourceAndTypeDispatchingExistenceChecker::__construct ( EntitySourceLookup  $entitySourceLookup,
ServiceBySourceAndTypeDispatcher  $serviceBySourceAndTypeDispatcher 
)

Member Function Documentation

◆ exists()

Wikibase\Lib\Store\SourceAndTypeDispatchingExistenceChecker::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

Implements Wikibase\Lib\Store\EntityExistenceChecker.

◆ existsBatch()

Wikibase\Lib\Store\SourceAndTypeDispatchingExistenceChecker::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.

Implements Wikibase\Lib\Store\EntityExistenceChecker.

Member Data Documentation

◆ $entitySourceLookup

Wikibase\Lib\Store\SourceAndTypeDispatchingExistenceChecker::$entitySourceLookup
private

◆ $serviceBySourceAndTypeDispatcher

Wikibase\Lib\Store\SourceAndTypeDispatchingExistenceChecker::$serviceBySourceAndTypeDispatcher
private

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