WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter Class Reference
+ Inheritance diagram for Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter:
+ Collaboration diagram for Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter:

Public Member Functions

 __construct (EntityLookup $entityLookup, LabelDescriptionLookup $labelDescriptionLookup, EntityTitleLookup $titleLookup, LocalizedTextProvider $textProvider, NonExistingEntityIdHtmlFormatter $nonExistingEntityIdHtmlFormatter)
 

Private Member Functions

 buildLinkLabel (TermList $lemmas)
 
 formatLemmas (TermList $lemmas)
 
 buildLinkTitle (LexemeId $id, ItemId $languageId, ItemId $lexicalCategoryId)
 
 getLabel (ItemId $id)
 Gets the item's label or falls back to its id serialization.
 

Private Attributes

 $entityLookup
 
 $labelDescriptionLookup
 
 $titleLookup
 
 $textProvider
 
 $nonExistingFormatter
 

Detailed Description

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::__construct ( EntityLookup $entityLookup,
LabelDescriptionLookup $labelDescriptionLookup,
EntityTitleLookup $titleLookup,
LocalizedTextProvider $textProvider,
NonExistingEntityIdHtmlFormatter $nonExistingEntityIdHtmlFormatter )

Member Function Documentation

◆ buildLinkLabel()

Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::buildLinkLabel ( TermList $lemmas)
private
Parameters
TermList$lemmas
Returns
string HTML

◆ buildLinkTitle()

Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::buildLinkTitle ( LexemeId $id,
ItemId $languageId,
ItemId $lexicalCategoryId )
private
Parameters
LexemeId$id
ItemId$languageId
ItemId$lexicalCategoryId
Returns
string Plain text

◆ formatLemmas()

Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::formatLemmas ( TermList $lemmas)
private
Parameters
TermList$lemmas
Returns
string[] HTML elements

◆ getLabel()

Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::getLabel ( ItemId $id)
private

Gets the item's label or falls back to its id serialization.

Parameters
ItemId$id
Returns
string

Member Data Documentation

◆ $entityLookup

Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::$entityLookup
private

◆ $labelDescriptionLookup

Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::$labelDescriptionLookup
private

◆ $nonExistingFormatter

Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::$nonExistingFormatter
private

◆ $textProvider

Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::$textProvider
private

◆ $titleLookup

Wikibase\Lexeme\Presentation\Formatters\LexemeIdHtmlFormatter::$titleLookup
private

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