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, SiteLinkTargetProvider $siteLinkTargetProvider, EntityPrefetcher $entityPrefetcher, array $siteLinkGroups, ApiErrorReporter $errorReporter, ResultBuilder $resultBuilder, EntityRevisionLookup $entityRevisionLookup, EntityIdParser $idParser, IBufferingStatsdDataFactory $stats, bool $federatedPropertiesEnabled) | |
execute () | |
Static Public Member Functions | |
static | factory (ApiMain $apiMain, string $moduleName, IBufferingStatsdDataFactory $stats, EntityIdParser $entityIdParser, LanguageFallbackChainFactory $languageFallbackChainFactory, SettingsArray $repoSettings, 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) | |
Private Attributes | |
$stringNormalizer | |
$languageFallbackChainFactory | |
$siteLinkTargetProvider | |
$entityPrefetcher | |
$siteLinkGroups | |
$resultBuilder | |
$entityRevisionLookup | |
$idParser | |
$stats | |
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, | ||
SiteLinkTargetProvider | $siteLinkTargetProvider, | ||
EntityPrefetcher | $entityPrefetcher, | ||
array | $siteLinkGroups, | ||
ApiErrorReporter | $errorReporter, | ||
ResultBuilder | $resultBuilder, | ||
EntityRevisionLookup | $entityRevisionLookup, | ||
EntityIdParser | $idParser, | ||
IBufferingStatsdDataFactory | $stats, | ||
bool | $federatedPropertiesEnabled | ||
) |
ApiMain | $mainModule | |
string | $moduleName | |
StringNormalizer | $stringNormalizer | |
LanguageFallbackChainFactory | $languageFallbackChainFactory | |
SiteLinkTargetProvider | $siteLinkTargetProvider | |
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 |