Wikibase
MediaWiki Wikibase extension
|
Provides a short description of the page in the content language. More...
Public Member Functions | |
__construct (ApiQuery $query, string $moduleName, DescriptionLookup $descriptionLookup, SettingsArray $clientSettings) | |
execute () | |
getCacheMode ( $params) | |
isInternal () | |
Protected Member Functions | |
getAllowedParams () | |
getExamplesMessages () | |
Private Member Functions | |
addDataToResponse (array $pageIds, array $descriptionsByPageId, array $sourcesByPageId, $continue) | |
Private Attributes | |
$allowLocalShortDesc | |
$forceLocalShortDesc | |
$descriptionLookup | |
Provides a short description of the page in the content language.
The description may be taken from an upstream Wikibase instance, or from a parser function in the article wikitext.
Arguably this should be a separate extension so that it can be used on wikis without Wikibase as well, but was initially implemented inside Wikibase for speed and convenience (T189154).
Wikibase\Client\Api\Description::__construct | ( | ApiQuery | $query, |
string | $moduleName, | ||
DescriptionLookup | $descriptionLookup, | ||
SettingsArray | $clientSettings | ||
) |
ApiQuery | $query | |
string | $moduleName | |
DescriptionLookup | $descriptionLookup | |
SettingsArray | $clientSettings |
|
private |
int[] | $pageIds | Page IDs, in the same order as returned by the ApiPageSet. |
string[] | $descriptionsByPageId | Descriptions as an associative array of page ID => description in the content language. |
string[] | $sourcesByPageId | Identifies where each source came from; an associative array of page ID => DescriptionLookup::SOURCE_*. |
int | $continue | The API request is being continued from this position. |
Wikibase\Client\Api\Description::execute | ( | ) |
|
protected |
Wikibase\Client\Api\Description::getCacheMode | ( | $params | ) |
|
protected |
Wikibase\Client\Api\Description::isInternal | ( | ) |
|
private |
|
private |
|
private |