Wikibase
MediaWiki Wikibase extension
|
Interface for implementations of both TermLookup and TermBuffer. More...
Additional Inherited Members | |
![]() | |
prefetchTerms (array $entityIds, array $termTypes, array $languageCodes) | |
Loads a set of terms into the buffer. | |
getPrefetchedTerm (EntityId $entityId, $termType, $languageCode) | |
Returns a term that was previously loaded by prefetchTerms. | |
![]() | |
getLabel (EntityId $entityId, $languageCode) | |
Gets the label of an Entity with the specified EntityId and language code. | |
getLabels (EntityId $entityId, array $languageCodes) | |
Gets all labels of an Entity with the specified EntityId. | |
getDescription (EntityId $entityId, $languageCode) | |
Gets the description of an Entity with the specified EntityId and language code. | |
getDescriptions (EntityId $entityId, array $languageCodes) | |
Gets all descriptions of an Entity with the specified EntityId. | |
![]() | |
getPrefetchedAliases (EntityId $entityId, $languageCode) | |
Returns terms that were previously loaded by prefetchTerms. | |
Interface for implementations of both TermLookup and TermBuffer.
Lookup methods should try to retrieve terms from TermBuffer::getPrefetchedTerm. Implementations may choose to fallback to another lookup if terms have not been prefeteched. Most implementations do not fallback and require terms to be prefetched in order to be returned by the lookups.