|
Wikibase
MediaWiki Wikibase extension
|
Provides wikibase terms (labels, descriptions, aliases, etc.) for local pages. More...
Inheritance diagram for Wikibase\Client\Api\PageTerms:
Collaboration diagram for Wikibase\Client\Api\PageTerms:Public Member Functions | |
| __construct (TermBuffer $termBuffer, EntityIdLookup $idLookup, ApiQuery $query, string $moduleName) | |
| execute () | |
| getCacheMode ( $params) | |
Static Public Member Functions | |
| static | newFromGlobalState (ApiQuery $apiQuery, string $moduleName) |
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. | |
Private Attributes | |
| $termBuffer | |
| $idLookup | |
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 | ( | TermBuffer | $termBuffer, |
| EntityIdLookup | $idLookup, | ||
| ApiQuery | $query, | ||
| string | $moduleName | ||
| ) |
|
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 |
|
static |
|
private |
|
private |