LanguageFallbackLabelDescriptionLookup decorator that records label usage in an UsageAccumulator.
More...
|
| getTouchedLanguages (TermFallback $termFallback=null) |
| Get the languages from the TermLanguageFallbackChain used to get a given TermFallback. More...
|
|
LanguageFallbackLabelDescriptionLookup decorator that records label usage in an UsageAccumulator.
- See also
- UsageAccumulator
- Copyright
- GPL-2.0-or-later
- Author
- Marius Hoch
◆ __construct()
- Parameters
-
FallbackLabelDescriptionLookup | $labelDescriptionLookup | |
UsageAccumulator | $usageAccumulator | |
TermLanguageFallbackChain | $termLanguageFallbackChain | |
bool | $trackUsagesInAllLanguages | |
◆ getDescription()
Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup::getDescription |
( |
EntityId |
$entityId | ) |
|
◆ getLabel()
Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup::getLabel |
( |
EntityId |
$entityId | ) |
|
◆ getTouchedLanguages()
Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup::getTouchedLanguages |
( |
TermFallback |
$termFallback = null | ) |
|
|
private |
Get the languages from the TermLanguageFallbackChain used to get a given TermFallback.
- Parameters
-
TermFallback | null | $termFallback | |
- Returns
- string[]|null[]
◆ $labelDescriptionLookup
Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup::$labelDescriptionLookup |
|
private |
◆ $termLanguageFallbackChain
Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup::$termLanguageFallbackChain |
|
private |
◆ $trackUsagesInAllLanguages
Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup::$trackUsagesInAllLanguages |
|
private |
◆ $usageAccumulator
Wikibase\Client\Usage\UsageTrackingLanguageFallbackLabelDescriptionLookup::$usageAccumulator |
|
private |
The documentation for this class was generated from the following file: