Wikibase
MediaWiki Wikibase extension
|
Provides wikibase terms (labels, descriptions, aliases, etc.) for local 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, etc.) for local pages.
For example, if a data item has the label "Washington" and the description "capital city of the US", and has a sitelink to the local page called "Washington DC", calling pageterms with titles=Washington_DC would include that label and description in the response.
Wikibase\Client\Api\PageTerms::__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\Client\Api\PageTerms::execute | ( | ) |
|
protected |
Wikibase\Client\Api\PageTerms::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 |