Wikibase
MediaWiki Wikibase extension
|
Wraps another label description lookup to resolve redirects and add caching. More...
Public Member Functions | |
__construct (TermFallbackCacheFacade $fallbackCache, RedirectResolvingLatestRevisionLookup $redirectResolvingRevisionLookup, FallbackLabelDescriptionLookup $labelDescriptionLookup, TermLanguageFallbackChain $termLanguageFallbackChain) | |
getDescription (EntityId $entityId) | |
getLabel (EntityId $entityId) | |
Private Member Functions | |
getTerm (EntityId $entityId, $languageCode, $termName=self::LABEL) | |
Private Attributes | |
const | LABEL = 'label' |
const | DESCRIPTION = 'description' |
$cache | |
$redirectResolvingRevisionLookup | |
$labelDescriptionLookup | |
$termLanguageFallbackChain | |
Wraps another label description lookup to resolve redirects and add caching.
Use FallbackLabelDescriptionLookupFactory
instead of using this class directly.
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::__construct | ( | TermFallbackCacheFacade | $fallbackCache, |
RedirectResolvingLatestRevisionLookup | $redirectResolvingRevisionLookup, | ||
FallbackLabelDescriptionLookup | $labelDescriptionLookup, | ||
TermLanguageFallbackChain | $termLanguageFallbackChain ) |
TermFallbackCacheFacade | $fallbackCache | |
RedirectResolvingLatestRevisionLookup | $redirectResolvingRevisionLookup | |
FallbackLabelDescriptionLookup | $labelDescriptionLookup | |
TermLanguageFallbackChain | $termLanguageFallbackChain |
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::getDescription | ( | EntityId | $entityId | ) |
EntityId | $entityId |
LabelDescriptionLookupException |
Implements Wikibase\Lib\Store\FallbackLabelDescriptionLookup.
Wikibase\Lib\Store\CachingFallbackLabelDescriptionLookup::getLabel | ( | EntityId | $entityId | ) |
EntityId | $entityId |
LabelDescriptionLookupException |
Implements Wikibase\Lib\Store\FallbackLabelDescriptionLookup.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |