Wikibase
MediaWiki Wikibase extension
|
Public Member Functions | |
getLabel (EntityId $entityId, $languageCode) | |
getLabels (EntityId $entityId, array $languageCodes) | |
getDescription (EntityId $entityId, $languageCode) | |
getDescriptions (EntityId $entityId, array $languageCodes) | |
Protected Member Functions | |
getTermsOfType (EntityId $entityId, $termType, array $languageCodes) | |
Gets the text string terms for a given type. More... | |
convertTermsToMap (array $wikibaseTerms) | |
|
protected |
TermIndexEntry[] | $wikibaseTerms |
Wikibase\Lib\Store\EntityTermLookupBase::getDescription | ( | EntityId | $entityId, |
$languageCode | |||
) |
EntityId | $entityId | |
string | $languageCode |
TermLookupException |
Implements Wikibase\DataModel\Services\Lookup\TermLookup.
Wikibase\Lib\Store\EntityTermLookupBase::getDescriptions | ( | EntityId | $entityId, |
array | $languageCodes | ||
) |
EntityId | $entityId | |
string[] | $languageCodes | The languages to get terms for |
TermLookupException |
Implements Wikibase\DataModel\Services\Lookup\TermLookup.
Wikibase\Lib\Store\EntityTermLookupBase::getLabel | ( | EntityId | $entityId, |
$languageCode | |||
) |
EntityId | $entityId | |
string | $languageCode |
TermLookupException |
Implements Wikibase\DataModel\Services\Lookup\TermLookup.
Wikibase\Lib\Store\EntityTermLookupBase::getLabels | ( | EntityId | $entityId, |
array | $languageCodes | ||
) |
EntityId | $entityId | |
string[] | $languageCodes | The languages to get terms for |
TermLookupException |
Implements Wikibase\DataModel\Services\Lookup\TermLookup.
|
abstractprotected |
Gets the text string terms for a given type.
If aliases are requested here you will only receive a single string.
EntityId | $entityId | |
string | $termType | |
string[] | $languageCodes | The languages to get terms for |
Reimplemented in Wikibase\Repo\FederatedProperties\ApiPrefetchingTermLookup, Wikibase\Lib\Store\Sql\Terms\PrefetchingEntityTermLookupBase, and Wikibase\DataAccess\SourceAndTypeDispatchingPrefetchingTermLookup.