Class for creating HTML views for Lexeme instances.
More...
|
| | __construct (TemplateFactory $templateFactory, LanguageDirectionalityLookup $languageDirectionalityLookup, $languageCode, FormsView $formsView, SensesView $sensesView, StatementSectionsView $statementSectionsView, LexemeTermFormatter $lemmaFormatter, EntityIdFormatter $idFormatter) |
| |
| | getContent (EntityDocument $entity, $revision=null) |
| | Builds and returns the main content representing a whole Lexeme.
|
| |
Class for creating HTML views for Lexeme instances.
- Copyright
- GPL-2.0-or-later
- Author
- Amir Sarabadani ladsg.nosp@m.roup.nosp@m.@gmai.nosp@m.l.co.nosp@m.m
◆ __construct()
| Wikibase\Lexeme\Presentation\View\LexemeView::__construct |
( |
TemplateFactory | $templateFactory, |
|
|
LanguageDirectionalityLookup | $languageDirectionalityLookup, |
|
|
| $languageCode, |
|
|
FormsView | $formsView, |
|
|
SensesView | $sensesView, |
|
|
StatementSectionsView | $statementSectionsView, |
|
|
LexemeTermFormatter | $lemmaFormatter, |
|
|
EntityIdFormatter | $idFormatter ) |
- Parameters
-
| TemplateFactory | $templateFactory | |
| LanguageDirectionalityLookup | $languageDirectionalityLookup | |
| string | $languageCode | |
| FormsView | $formsView | |
| SensesView | $sensesView | |
| StatementSectionsView | $statementSectionsView | |
| LexemeTermFormatter | $lemmaFormatter | |
| EntityIdFormatter | $idFormatter | |
◆ getContent()
| Wikibase\Lexeme\Presentation\View\LexemeView::getContent |
( |
EntityDocument | $entity, |
|
|
| $revision = null ) |
Builds and returns the main content representing a whole Lexeme.
- Parameters
-
| EntityDocument | $entity | the entity to render |
| int | null | $revision | the revision of the entity to render |
- Returns
- ViewContent
◆ getLexemeHeader()
| Wikibase\Lexeme\Presentation\View\LexemeView::getLexemeHeader |
( |
Lexeme | $entity | ) |
|
|
private |
- Parameters
-
- Returns
- string HTML
◆ getLocalizedMessage()
| Wikibase\Lexeme\Presentation\View\LexemeView::getLocalizedMessage |
( |
| $key, |
|
|
array | $params = [] ) |
|
private |
- Parameters
-
- Returns
- string Plain text
◆ getSideHtml()
| Wikibase\Lexeme\Presentation\View\LexemeView::getSideHtml |
( |
EntityDocument | $entity | ) |
|
|
protected |
- See also
- EntityView::getSideHtml
- Parameters
-
- Returns
- string HTML
◆ renderLanguageAndLexicalCategoryWidget()
| Wikibase\Lexeme\Presentation\View\LexemeView::renderLanguageAndLexicalCategoryWidget |
( |
Lexeme | $lexeme | ) |
|
|
private |
◆ renderLemmaWidget()
| Wikibase\Lexeme\Presentation\View\LexemeView::renderLemmaWidget |
( |
Lexeme | $lexeme | ) |
|
|
private |
◆ $formsView
| Wikibase\Lexeme\Presentation\View\LexemeView::$formsView |
|
private |
◆ $idFormatter
| Wikibase\Lexeme\Presentation\View\LexemeView::$idFormatter |
|
private |
◆ $lemmaFormatter
| Wikibase\Lexeme\Presentation\View\LexemeView::$lemmaFormatter |
|
private |
◆ $sensesView
| Wikibase\Lexeme\Presentation\View\LexemeView::$sensesView |
|
private |
◆ $statementSectionsView
| Wikibase\Lexeme\Presentation\View\LexemeView::$statementSectionsView |
|
private |
The documentation for this class was generated from the following file: