WikibaseLexeme
MediaWiki WikibaseLexeme extension
Loading...
Searching...
No Matches
Wikibase\Lexeme\Presentation\View\FormsView Class Reference

Public Member Functions

 __construct (LocalizedTextProvider $textProvider, LexemeTemplateFactory $templateFactory, EntityIdFormatter $entityIdFormatter, StatementGroupListView $statementGroupListView, ItemOrderProvider $grammaticalFeaturesOrderProvider)
 
 getHtml (FormSet $forms)
 

Private Member Functions

 getFormHtml (Form $form)
 
 getSortedGrammaticalFeatures (Form $form)
 Return a list of grammatical features by a specific order, decided by the list maintained in the wikipage MediaWiki:WikibaseLexeme-SortedGrammaticalFeatures.
 
 renderRepresentationWidget (Form $form)
 
 getGrammaticalFeatureHtml (ItemId $id)
 
 getStatementSectionHtml (Form $form)
 

Private Attributes

 $textProvider
 
 $templateFactory
 
 $entityIdFormatter
 
 $statementGroupListView
 
 $grammaticalFeaturesOrderProvider
 

Detailed Description

Author
Thiemo Kreuz

Constructor & Destructor Documentation

◆ __construct()

Wikibase\Lexeme\Presentation\View\FormsView::__construct ( LocalizedTextProvider $textProvider,
LexemeTemplateFactory $templateFactory,
EntityIdFormatter $entityIdFormatter,
StatementGroupListView $statementGroupListView,
ItemOrderProvider $grammaticalFeaturesOrderProvider )

Member Function Documentation

◆ getFormHtml()

Wikibase\Lexeme\Presentation\View\FormsView::getFormHtml ( Form $form)
private
Parameters
Form$form
Returns
string HTML

◆ getGrammaticalFeatureHtml()

Wikibase\Lexeme\Presentation\View\FormsView::getGrammaticalFeatureHtml ( ItemId $id)
private
Parameters
ItemId$id
Returns
string HTML

◆ getHtml()

Wikibase\Lexeme\Presentation\View\FormsView::getHtml ( FormSet $forms)
Parameters
FormSet$forms
Returns
string HTML

◆ getSortedGrammaticalFeatures()

Wikibase\Lexeme\Presentation\View\FormsView::getSortedGrammaticalFeatures ( Form $form)
private

Return a list of grammatical features by a specific order, decided by the list maintained in the wikipage MediaWiki:WikibaseLexeme-SortedGrammaticalFeatures.

Parameters
Form$form
Returns
ItemId[]

◆ getStatementSectionHtml()

Wikibase\Lexeme\Presentation\View\FormsView::getStatementSectionHtml ( Form $form)
private
Parameters
Form$form
Returns
string HTML

◆ renderRepresentationWidget()

Wikibase\Lexeme\Presentation\View\FormsView::renderRepresentationWidget ( Form $form)
private
Returns
string

Member Data Documentation

◆ $entityIdFormatter

Wikibase\Lexeme\Presentation\View\FormsView::$entityIdFormatter
private

◆ $grammaticalFeaturesOrderProvider

Wikibase\Lexeme\Presentation\View\FormsView::$grammaticalFeaturesOrderProvider
private

◆ $statementGroupListView

Wikibase\Lexeme\Presentation\View\FormsView::$statementGroupListView
private

◆ $templateFactory

Wikibase\Lexeme\Presentation\View\FormsView::$templateFactory
private

◆ $textProvider

Wikibase\Lexeme\Presentation\View\FormsView::$textProvider
private

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