Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\FederatedProperties\ApiEntityExistenceChecker Class Reference
+ Inheritance diagram for Wikibase\Repo\FederatedProperties\ApiEntityExistenceChecker:
+ Collaboration diagram for Wikibase\Repo\FederatedProperties\ApiEntityExistenceChecker:

Public Member Functions

 __construct (ApiEntityLookup $apiEntityLookup)
 
 existsBatch (array $ids)
 Checks if a batch of entities exists at once.
 
- Public Member Functions inherited from Wikibase\Lib\Store\EntityExistenceChecker
 exists (EntityId $id)
 This exists check returns true, iff an entity has both been created and not deleted, i.e.
 

Private Attributes

 $apiEntityLookup
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\FederatedProperties\ApiEntityExistenceChecker::__construct ( ApiEntityLookup $apiEntityLookup)

Member Function Documentation

◆ existsBatch()

Wikibase\Repo\FederatedProperties\ApiEntityExistenceChecker::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

◆ $apiEntityLookup

Wikibase\Repo\FederatedProperties\ApiEntityExistenceChecker::$apiEntityLookup
private

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