Wikibase
MediaWiki Wikibase extension
|
A class that handles fetching and in-memory caching of entities. More...
Public Member Functions | |
__construct (GenericActionApiClient $api) | |
fetchEntities (array $ids) | |
Fetches entities from the source and stores the result in cache. | |
getResultPartForId (FederatedPropertyId $id) | |
Getter for the federated entity result data. | |
getFederatedEntityIdsWithoutPrefix (array $federatedEntityIds) | |
Private Member Functions | |
getEntitiesToFetch (array $entityIds) | |
getEntities (array $ids) | |
Private Attributes | |
$api | |
$lookupCache = [] | |
A class that handles fetching and in-memory caching of entities.
Wikibase\Repo\FederatedProperties\ApiEntityLookup::__construct | ( | GenericActionApiClient | $api | ) |
Wikibase\Repo\FederatedProperties\ApiEntityLookup::fetchEntities | ( | array | $ids | ) |
Fetches entities from the source and stores the result in cache.
FederatedPropertyId[] | $ids |
|
private |
FederatedPropertyId[] | $ids |
|
private |
FederatedPropertyId[] | $entityIds |
Wikibase\Repo\FederatedProperties\ApiEntityLookup::getFederatedEntityIdsWithoutPrefix | ( | array | $federatedEntityIds | ) |
FederatedPropertyId[] | $federatedEntityIds |
Wikibase\Repo\FederatedProperties\ApiEntityLookup::getResultPartForId | ( | FederatedPropertyId | $id | ) |
Getter for the federated entity result data.
If not currently in cache it will make a new request.
FederatedPropertyId | $id |
|
private |
|
private |