Wikibase
MediaWiki Wikibase extension
|
Generates HTML to display terms of an entity in a list. More...
Public Member Functions | |
__construct (TemplateFactory $templateFactory, LanguageNameLookup $languageNameLookup, LocalizedTextProvider $textProvider, LanguageDirectionalityLookup $languageDirectionalityLookup) | |
getHtml (TermList $labels, TermList $descriptions, ?AliasGroupList $aliasGroups, array $languageCodes) | |
getListViewHtml ( $contentHtml) | |
getListItemHtml (TermList $labels, TermList $descriptions, ?AliasGroupList $aliasGroups, $languageCode) | |
Private Member Functions | |
getTermView (TermList $termList, $templateName, $emptyTextKey, $languageCode) | |
getAliasesView (AliasGroupList $aliasGroups, $languageCode) | |
Private Attributes | |
$templateFactory | |
$languageDirectionalityLookup | |
$languageNameLookup | |
$textProvider | |
Generates HTML to display terms of an entity in a list.
Wikibase\View\TermsListView::__construct | ( | TemplateFactory | $templateFactory, |
LanguageNameLookup | $languageNameLookup, | ||
LocalizedTextProvider | $textProvider, | ||
LanguageDirectionalityLookup | $languageDirectionalityLookup | ||
) |
|
private |
AliasGroupList | $aliasGroups | |
string | $languageCode |
Wikibase\View\TermsListView::getHtml | ( | TermList | $labels, |
TermList | $descriptions, | ||
?AliasGroupList | $aliasGroups, | ||
array | $languageCodes | ||
) |
TermList | $labels | |
TermList | $descriptions | |
AliasGroupList | null | $aliasGroups | |
string[] | $languageCodes | The languages the user requested to be shown |
Wikibase\View\TermsListView::getListItemHtml | ( | TermList | $labels, |
TermList | $descriptions, | ||
?AliasGroupList | $aliasGroups, | ||
$languageCode | |||
) |
TermList | $labels | |
TermList | $descriptions | |
AliasGroupList | null | $aliasGroups | |
string | $languageCode |
Wikibase\View\TermsListView::getListViewHtml | ( | $contentHtml | ) |
string | $contentHtml |
|
private |
|
private |
|
private |
|
private |
|
private |