Wikibase
MediaWiki Wikibase extension
|
Generates HTML to display the terms of an entity. More...
Public Member Functions | |
__construct (HtmlTermRenderer $htmlTermRenderer, LabelDescriptionLookup $labelDescriptionLookup, TemplateFactory $templateFactory, EditSectionGenerator $sectionEditLinkGenerator, TermsListView $termsListView, LocalizedTextProvider $textProvider) | |
getHtml ( $mainLanguageCode, TermList $labels, TermList $descriptions, ?AliasGroupList $aliasGroups=null, ?EntityId $entityId=null) | |
getTitleHtml (?EntityId $entityId) | |
Protected Member Functions | |
getHeadingHtml ( $languageCode, ?EntityId $entityId, ?AliasGroupList $aliasGroups) | |
getTermsLanguageCodes ( $mainLanguageCode, TermList $labels, TermList $descriptions, ?AliasGroupList $aliasGroups) | |
getHtmlForLabelDescriptionAliasesEditSection ( $languageCode, ?EntityId $entityId) | |
Private Member Functions | |
getDescriptionHtml (?Term $description) | |
getHtmlForAliases ( $languageCode, AliasGroupList $aliasGroups) | |
Private Attributes | |
$htmlTermRenderer | |
$labelDescriptionLookup | |
$templateFactory | |
$sectionEditLinkGenerator | |
$termsListView | |
$textProvider | |
Additional Inherited Members | |
Public Attributes inherited from Wikibase\View\EntityTermsView | |
const | TERMS_EDIT_SPECIAL_PAGE = 'SetLabelDescriptionAliases' |
Generates HTML to display the terms of an entity.
Wikibase\View\SimpleEntityTermsView::__construct | ( | HtmlTermRenderer | $htmlTermRenderer, |
LabelDescriptionLookup | $labelDescriptionLookup, | ||
TemplateFactory | $templateFactory, | ||
EditSectionGenerator | $sectionEditLinkGenerator, | ||
TermsListView | $termsListView, | ||
LocalizedTextProvider | $textProvider ) |
|
private |
Term | null | $description |
|
protected |
Wikibase\View\SimpleEntityTermsView::getHtml | ( | $mainLanguageCode, | |
TermList | $labels, | ||
TermList | $descriptions, | ||
?AliasGroupList | $aliasGroups = null, | ||
?EntityId | $entityId = null ) |
string | $mainLanguageCode | Desired language of the label, description and aliases in the title and header section. Not necessarily identical to the interface language. |
TermList | $labels | |
TermList | $descriptions | |
AliasGroupList | null | $aliasGroups | |
EntityId | null | $entityId | the id of the entity |
Implements Wikibase\View\EntityTermsView.
Reimplemented in Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView.
|
private |
string | $languageCode | The language of the aliases |
AliasGroupList | $aliasGroups | the list of alias groups to render |
|
protected |
string | $languageCode | The language for which terms should be edited |
EntityId | null | $entityId |
|
protected |
string | $mainLanguageCode | Desired language of the label, description and aliases in the title and header section. Not necessarily identical to the interface language. |
TermList | $labels | |
TermList | $descriptions | |
AliasGroupList | null | $aliasGroups |
Wikibase\View\SimpleEntityTermsView::getTitleHtml | ( | ?EntityId | $entityId | ) |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |