Wikibase
MediaWiki Wikibase extension
Loading...
Searching...
No Matches
Wikibase\Repo\ParserOutput\TermboxView Class Reference
+ Inheritance diagram for Wikibase\Repo\ParserOutput\TermboxView:
+ Collaboration diagram for Wikibase\Repo\ParserOutput\TermboxView:

Public Member Functions

 __construct (LanguageFallbackChainFactory $fallbackChainFactory, TermboxRenderer $renderer, LocalizedTextProvider $textProvider, SpecialPageLinker $specialPageLinker, TextInjector $textInjector)
 
 getHtml ( $mainLanguageCode, TermList $labels, TermList $descriptions, AliasGroupList $aliasGroups=null, EntityId $entityId=null)
 
 getTitleHtml (EntityId $entityId=null)
 
 getPlaceholders (EntityDocument $entity, $revision, $languageCode)
 

Public Attributes

const TERMBOX_PLACEHOLDER = 'wb-ui'
 
const TERMBOX_MARKUP = 'termbox-markup'
 
const TERMBOX_VERSION = 2
 
const CACHE_VERSION = 2
 
- Public Attributes inherited from Wikibase\View\EntityTermsView
const TERMS_EDIT_SPECIAL_PAGE = 'SetLabelDescriptionAliases'
 
- Public Attributes inherited from Wikibase\View\ViewPlaceHolderEmitter
const ERRONEOUS_PLACEHOLDER_VALUE = null
 

Private Member Functions

 renderTermbox (EntityId $entityId, $revision, $mainLanguageCode)
 

Private Attributes

 $fallbackChainFactory
 
 $renderer
 
 $specialPageLinker
 
 $textInjector
 
 $textProvider
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Repo\ParserOutput\TermboxView::__construct ( LanguageFallbackChainFactory  $fallbackChainFactory,
TermboxRenderer  $renderer,
LocalizedTextProvider  $textProvider,
SpecialPageLinker  $specialPageLinker,
TextInjector  $textInjector 
)

Member Function Documentation

◆ getHtml()

Wikibase\Repo\ParserOutput\TermboxView::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

Implements Wikibase\View\EntityTermsView.

◆ getPlaceholders()

Wikibase\Repo\ParserOutput\TermboxView::getPlaceholders ( EntityDocument  $entity,
  $revision,
  $languageCode 
)
See also
\Wikibase\View\ViewPlaceHolderEmitter

Implements Wikibase\View\ViewPlaceHolderEmitter.

◆ getTitleHtml()

Wikibase\Repo\ParserOutput\TermboxView::getTitleHtml ( EntityId  $entityId = null)
Parameters
EntityId | null$entityId
Returns
string HTML

Implements Wikibase\View\EntityTermsView.

◆ renderTermbox()

Wikibase\Repo\ParserOutput\TermboxView::renderTermbox ( EntityId  $entityId,
  $revision,
  $mainLanguageCode 
)
private
Parameters
EntityId$entityId
int$revision
string$mainLanguageCode
Returns
string|null

Member Data Documentation

◆ $fallbackChainFactory

Wikibase\Repo\ParserOutput\TermboxView::$fallbackChainFactory
private

◆ $renderer

Wikibase\Repo\ParserOutput\TermboxView::$renderer
private

◆ $specialPageLinker

Wikibase\Repo\ParserOutput\TermboxView::$specialPageLinker
private

◆ $textInjector

Wikibase\Repo\ParserOutput\TermboxView::$textInjector
private

◆ $textProvider

Wikibase\Repo\ParserOutput\TermboxView::$textProvider
private

◆ CACHE_VERSION

const Wikibase\Repo\ParserOutput\TermboxView::CACHE_VERSION = 2

◆ TERMBOX_MARKUP

const Wikibase\Repo\ParserOutput\TermboxView::TERMBOX_MARKUP = 'termbox-markup'

◆ TERMBOX_PLACEHOLDER

const Wikibase\Repo\ParserOutput\TermboxView::TERMBOX_PLACEHOLDER = 'wb-ui'

◆ TERMBOX_VERSION

const Wikibase\Repo\ParserOutput\TermboxView::TERMBOX_VERSION = 2

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