|
Wikibase
MediaWiki Wikibase extension
|
Inheritance diagram for Wikibase\Lib\Store\EntityTermLookupBase:
Collaboration diagram for Wikibase\Lib\Store\EntityTermLookupBase: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. | |
| 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\DataAccess\SourceAndTypeDispatchingPrefetchingTermLookup, Wikibase\Lib\Store\Sql\Terms\PrefetchingEntityTermLookupBase, and Wikibase\Repo\FederatedProperties\ApiPrefetchingTermLookup.