Wikibase
MediaWiki Wikibase extension
|
Provides wikibase terms (labels, descriptions, aliases) for entity pages. More...
Public Member Functions | |
__construct (ApiQuery $query, string $moduleName, AliasTermBuffer $aliasTermBuffer, EntityIdLookup $idLookup, TermBuffer $termBuffer, ContentLanguages $termsLanguages) | |
execute () | |
getCacheMode ( $params) | |
Protected Member Functions | |
getAllowedParams () | |
getExamplesMessages () | |
Private Member Functions | |
getTermsOfEntities (array $entityIds, array $termTypes, string $languageCode) | |
getEntityIdsForTitles (array $titles, $continue=0) | |
getEntityToPageMap (array $entityIds) | |
groupTermsByPageAndType (array $entityToPageMap, array $terms) | |
addTermsToResult (array $pagesToEntityIds, array $termGroups) | |
addTermsForPage (ApiResult $result, int $pageId, array $termsByType) | |
Add page term to an ApiResult, adding a continue parameter if it doesn't fit. More... | |
Private Attributes | |
$aliasTermBuffer | |
$termBuffer | |
$idLookup | |
$termsLanguages | |
Provides wikibase terms (labels, descriptions, aliases) for entity pages.
For example, if data item Q61 has the label "Washington" and the description "capital city of the US", calling entityterms with titles=Q61 would include that label and description in the response.
Wikibase\Repo\Api\EntityTerms::__construct | ( | ApiQuery | $query, |
string | $moduleName, | ||
AliasTermBuffer | $aliasTermBuffer, | ||
EntityIdLookup | $idLookup, | ||
TermBuffer | $termBuffer, | ||
ContentLanguages | $termsLanguages | ||
) |
|
private |
Add page term to an ApiResult, adding a continue parameter if it doesn't fit.
ApiResult | $result | |
int | $pageId | |
array[] | $termsByType |
InvalidArgumentException |
|
private |
EntityId[] | $pagesToEntityIds | |
array[] | $termGroups |
Wikibase\Repo\Api\EntityTerms::execute | ( | ) |
|
protected |
Wikibase\Repo\Api\EntityTerms::getCacheMode | ( | $params | ) |
array | $params |
|
private |
Title[] | $titles | |
int | null | $continue |
|
private |
EntityId[] | $entityIds |
|
protected |
|
private |
EntityId[] | $entityIds | |
string[] | $termTypes | |
string | $languageCode |
|
private |
int[] | $entityToPageMap | |
TermIndexEntry[] | $terms |
|
private |
|
private |
|
private |
|
private |