Wikibase
MediaWiki Wikibase extension
|
LanguageFallbackLabelDescriptionLookup decorator that records label usage in an UsageAccumulator. More...
Public Member Functions | |
__construct (FallbackLabelDescriptionLookup $labelDescriptionLookup, UsageAccumulator $usageAccumulator, TermLanguageFallbackChain $termLanguageFallbackChain, $trackUsagesInAllLanguages) | |
getLabel (EntityId $entityId) | |
getDescription (EntityId $entityId) | |
Private Member Functions | |
getTouchedLanguages (TermFallback $termFallback=null) | |
Get the languages from the TermLanguageFallbackChain used to get a given TermFallback. | |
Private Attributes | |
$labelDescriptionLookup | |
$usageAccumulator | |
$termLanguageFallbackChain | |
$trackUsagesInAllLanguages | |
LanguageFallbackLabelDescriptionLookup decorator that records label usage in an UsageAccumulator.
Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup::__construct | ( | FallbackLabelDescriptionLookup | $labelDescriptionLookup, |
UsageAccumulator | $usageAccumulator, | ||
TermLanguageFallbackChain | $termLanguageFallbackChain, | ||
$trackUsagesInAllLanguages ) |
FallbackLabelDescriptionLookup | $labelDescriptionLookup | |
UsageAccumulator | $usageAccumulator | |
TermLanguageFallbackChain | $termLanguageFallbackChain | |
bool | $trackUsagesInAllLanguages |
Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup::getDescription | ( | EntityId | $entityId | ) |
EntityId | $entityId |
LabelDescriptionLookupException |
Implements Wikibase\Lib\Store\FallbackLabelDescriptionLookup.
Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup::getLabel | ( | EntityId | $entityId | ) |
EntityId | $entityId |
LabelDescriptionLookupException |
Implements Wikibase\Lib\Store\FallbackLabelDescriptionLookup.
|
private |
Get the languages from the TermLanguageFallbackChain used to get a given TermFallback.
TermFallback | null | $termFallback |
|
private |
|
private |
|
private |
|
private |