Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\FederatedProperties\ApiEntityLookup Class Reference

Public Member Functions

 __construct (GenericActionApiClient $api)
 
 fetchEntities (array $entityIds)
 
 getResultPartForId (EntityId $entityId)
 

Private Member Functions

 getEntitiesToFetch (array $entityIds)
 
 getEntities (array $entityIds)
 

Private Attributes

 $api
 
 $entityLookupResult = []
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\FederatedProperties\ApiEntityLookup::__construct ( GenericActionApiClient  $api)

Member Function Documentation

◆ fetchEntities()

Wikibase\Repo\FederatedProperties\ApiEntityLookup::fetchEntities ( array  $entityIds)
Parameters
EntityId[]$entityIds

◆ getEntities()

Wikibase\Repo\FederatedProperties\ApiEntityLookup::getEntities ( array  $entityIds)
private
Parameters
EntityId[]$entityIds
Returns
array the json_decoded part of the wbgetentities API response for the entity.

◆ getEntitiesToFetch()

Wikibase\Repo\FederatedProperties\ApiEntityLookup::getEntitiesToFetch ( array  $entityIds)
private
Parameters
EntityId[]$entityIds
Returns
EntityId[]

◆ getResultPartForId()

Wikibase\Repo\FederatedProperties\ApiEntityLookup::getResultPartForId ( EntityId  $entityId)
Parameters
EntityId$entityId
Returns
array containing the part of the wbgetentities response for the given entity id

Member Data Documentation

◆ $api

Wikibase\Repo\FederatedProperties\ApiEntityLookup::$api
private

◆ $entityLookupResult

Wikibase\Repo\FederatedProperties\ApiEntityLookup::$entityLookupResult = []
private

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