Wikibase
MediaWiki Wikibase extension
|
Factory for LabelDescriptionLookup objects based on FormatterOptions. More...
Public Member Functions | |
__construct (TermLookup $termLookup) | |
getLabelDescriptionLookup (FormatterOptions $options) | |
Public Attributes | |
const | OPT_LANGUAGE_FALLBACK_CHAIN = 'languages' |
Private Member Functions | |
newLanguageFallbackLabelDescriptionLookup (FormatterOptions $options) | |
newLanguageLabelDescriptionLookup (FormatterOptions $options) | |
Private Attributes | |
$termLookup | |
Factory for LabelDescriptionLookup objects based on FormatterOptions.
The LabelDescriptionLookup is created based on the values of the options OPT_LANGUAGE_FALLBACK_CHAIN, and ValueFormatter::OPT_LANG:
Wikibase\Lib\Formatters\FormatterLabelDescriptionLookupFactory::__construct | ( | TermLookup | $termLookup | ) |
Wikibase\Lib\Formatters\FormatterLabelDescriptionLookupFactory::getLabelDescriptionLookup | ( | FormatterOptions | $options | ) |
FormatterOptions | $options |
InvalidArgumentException |
|
private |
|
private |
|
private |
const Wikibase\Lib\Formatters\FormatterLabelDescriptionLookupFactory::OPT_LANGUAGE_FALLBACK_CHAIN = 'languages' |