Wikibase
MediaWiki Wikibase extension
Wikibase\View\EntityTermsView Interface Reference

Generates HTML to display the terms of an entity. More...

+ Inheritance diagram for Wikibase\View\EntityTermsView:

Public Member Functions

 getHtml ( $mainLanguageCode, TermList $labels, TermList $descriptions, AliasGroupList $aliasGroups=null, EntityId $entityId=null)
 
 getTitleHtml (EntityId $entityId=null)
 

Public Attributes

const TERMS_EDIT_SPECIAL_PAGE = 'SetLabelDescriptionAliases'
 

Detailed Description

Generates HTML to display the terms of an entity.

Author
Adrian Heine adria.nosp@m.n.he.nosp@m.ine@w.nosp@m.ikim.nosp@m.edia..nosp@m.de

Member Function Documentation

◆ getHtml()

Wikibase\View\EntityTermsView::getHtml (   $mainLanguageCode,
TermList  $labels,
TermList  $descriptions,
AliasGroupList  $aliasGroups = null,
EntityId  $entityId = null 
)
Parameters
string$mainLanguageCodeDesired 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$entityIdthe id of the entity
Returns
string HTML

Implemented in Wikibase\View\SimpleEntityTermsView, Wikibase\Repo\ParserOutput\TermboxView, and Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView.

◆ getTitleHtml()

Wikibase\View\EntityTermsView::getTitleHtml ( EntityId  $entityId = null)
Parameters
EntityId | null$entityId
Returns
string HTML

Implemented in Wikibase\View\SimpleEntityTermsView, and Wikibase\Repo\ParserOutput\TermboxView.

Member Data Documentation

◆ TERMS_EDIT_SPECIAL_PAGE

const Wikibase\View\EntityTermsView::TERMS_EDIT_SPECIAL_PAGE = 'SetLabelDescriptionAliases'

The documentation for this interface was generated from the following file: