Wikibase
MediaWiki Wikibase extension
|
API module to get the data for one or more Wikibase entities. More...
Public Member Functions | |
__construct (ApiMain $mainModule, string $moduleName, StringNormalizer $stringNormalizer, LanguageFallbackChainFactory $languageFallbackChainFactory, SiteLinkGlobalIdentifiersProvider $siteLinkGlobalIdentifiersProvider, EntityPrefetcher $entityPrefetcher, array $siteLinkGroups, ApiErrorReporter $errorReporter, ResultBuilder $resultBuilder, EntityRevisionLookup $entityRevisionLookup, EntityIdParser $idParser, SiteLookup $siteLookup, IBufferingStatsdDataFactory $stats, bool $federatedPropertiesEnabled) | |
execute () | |
Static Public Member Functions | |
static | factory (ApiMain $apiMain, string $moduleName, SiteLookup $siteLookup, IBufferingStatsdDataFactory $stats, ApiHelperFactory $apiHelperFactory, EntityIdParser $entityIdParser, EntityRevisionLookup $entityRevisionLookup, LanguageFallbackChainFactory $languageFallbackChainFactory, SettingsArray $repoSettings, SiteLinkGlobalIdentifiersProvider $siteLinkGlobalIdentifiersProvider, Store $store, StringNormalizer $stringNormalizer) |
Protected Member Functions | |
getAllowedParams () | |
getExamplesMessages () | |
Protected Attributes | |
$errorReporter | |
Private Member Functions | |
getEntityIdsFromParams (array $params) | |
Get a unique array of EntityIds from api request params. More... | |
getEntityIdsFromIdParam (array $params) | |
getEntityIdsFromSiteTitleParams (array $params) | |
getItemByTitleHelper () | |
addMissingItemsToResult (array $missingItems) | |
getPropsFromParams (array $params) | |
Returns props based on request parameters. More... | |
getEntityRevisionsFromEntityIds (array $entityIds, bool $resolveRedirects=false) | |
getEntityRevision (EntityId $entityId, bool $resolveRedirects=false) | |
handleEntity (?string $sourceEntityId, EntityRevision $entityRevision=null, array $params=[]) | |
Adds the given EntityRevision to the API result. More... | |
getLanguageCodesAndFallback (array $params) | |
API module to get the data for one or more Wikibase entities.
Wikibase\Repo\Api\GetEntities::__construct | ( | ApiMain | $mainModule, |
string | $moduleName, | ||
StringNormalizer | $stringNormalizer, | ||
LanguageFallbackChainFactory | $languageFallbackChainFactory, | ||
SiteLinkGlobalIdentifiersProvider | $siteLinkGlobalIdentifiersProvider, | ||
EntityPrefetcher | $entityPrefetcher, | ||
array | $siteLinkGroups, | ||
ApiErrorReporter | $errorReporter, | ||
ResultBuilder | $resultBuilder, | ||
EntityRevisionLookup | $entityRevisionLookup, | ||
EntityIdParser | $idParser, | ||
SiteLookup | $siteLookup, | ||
IBufferingStatsdDataFactory | $stats, | ||
bool | $federatedPropertiesEnabled | ||
) |
ApiMain | $mainModule | |
string | $moduleName | |
StringNormalizer | $stringNormalizer | |
LanguageFallbackChainFactory | $languageFallbackChainFactory | |
SiteLinkGlobalIdentifiersProvider | $siteLinkGlobalIdentifiersProvider | |
EntityPrefetcher | $entityPrefetcher | |
string[] | $siteLinkGroups | |
ApiErrorReporter | $errorReporter | |
ResultBuilder | $resultBuilder | |
EntityRevisionLookup | $entityRevisionLookup | |
EntityIdParser | $idParser | |
IBufferingStatsdDataFactory | $stats | |
bool | $federatedPropertiesEnabled |
|
private |
array[] | $missingItems | Array of arrays, Each internal array has a key 'site' and 'title' |
Wikibase\Repo\Api\GetEntities::execute | ( | ) |
|
static |
|
protected |
|
private |
array | $params |
|
private |
Get a unique array of EntityIds from api request params.
array | $params |
|
private |
array | $params |
|
private |
|
private |
EntityId[] | $entityIds | |
bool | $resolveRedirects |
|
protected |
|
private |
|
private |
array | $params |
|
private |
Returns props based on request parameters.
array | $params |
|
private |
Adds the given EntityRevision to the API result.
string | null | $sourceEntityId | |
EntityRevision | null | $entityRevision | |
array | $params |
|
private |
|
private |
|
protected |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |