A class that handles fetching and in-memory caching of entities.
More...
A class that handles fetching and in-memory caching of entities.
- Copyright
- GPL-2.0-or-later
◆ __construct()
◆ fetchEntities()
Wikibase\Repo\FederatedProperties\ApiEntityLookup::fetchEntities |
( |
array |
$entityIds | ) |
|
Fetches entities from the source and stores the result in cache.
- Parameters
-
◆ getEntities()
Wikibase\Repo\FederatedProperties\ApiEntityLookup::getEntities |
( |
array |
$entityIds | ) |
|
|
private |
- Parameters
-
- Returns
- array the json_decoded part of the wbgetentities API response for the entity.
◆ getEntitiesToFetch()
Wikibase\Repo\FederatedProperties\ApiEntityLookup::getEntitiesToFetch |
( |
array |
$entityIds | ) |
|
|
private |
- Parameters
-
- Returns
- EntityId[]
◆ getResultPartForId()
Wikibase\Repo\FederatedProperties\ApiEntityLookup::getResultPartForId |
( |
EntityId |
$entityId | ) |
|
Getter for the the federated entity result data.
If not currently in cache it will make a new request.
- Parameters
-
- Returns
- array containing the part of the wbgetentities response for the given entity id
◆ $api
Wikibase\Repo\FederatedProperties\ApiEntityLookup::$api |
|
private |
◆ $lookupCache
Wikibase\Repo\FederatedProperties\ApiEntityLookup::$lookupCache = [] |
|
private |
The documentation for this class was generated from the following file: