An EntityTermsView that returns placeholders for some parts of the HTML.
More...
|
| __construct (HtmlTermRenderer $htmlTermRenderer, LabelDescriptionLookup $labelDescriptionLookup, TemplateFactory $templateFactory, EditSectionGenerator $sectionEditLinkGenerator, LocalizedTextProvider $textProvider, TermsListView $termsListView, TextInjector $textInjector, bool $mulEnabled=false) |
|
| getHtml ( $mainLanguageCode, TermList $labels, TermList $descriptions, AliasGroupList $aliasGroups=null, EntityId $entityId=null) |
|
| getTermsListItems ( $mainLanguageCode, TermList $labels, TermList $descriptions, AliasGroupList $aliasGroups=null) |
|
| getPlaceholders (EntityDocument $entity, $revision, $languageCode) |
| PhanUndeclaredMethod
|
|
| __construct (HtmlTermRenderer $htmlTermRenderer, LabelDescriptionLookup $labelDescriptionLookup, TemplateFactory $templateFactory, EditSectionGenerator $sectionEditLinkGenerator, TermsListView $termsListView, LocalizedTextProvider $textProvider) |
|
| getTitleHtml (EntityId $entityId=null) |
|
An EntityTermsView that returns placeholders for some parts of the HTML.
- Copyright
- GPL-2.0-or-later
- Author
- Adrian Heine adria.nosp@m.n.he.nosp@m.ine@w.nosp@m.ikim.nosp@m.edia..nosp@m.de
◆ __construct()
◆ getHtml()
Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView::getHtml |
( |
| $mainLanguageCode, |
|
|
TermList | $labels, |
|
|
TermList | $descriptions, |
|
|
AliasGroupList | $aliasGroups = null, |
|
|
EntityId | $entityId = null ) |
- Parameters
-
string | $mainLanguageCode | Desired 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 | $entityId | the id of the entity |
- Returns
- string HTML
Reimplemented from Wikibase\View\SimpleEntityTermsView.
◆ getPlaceholders()
Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView::getPlaceholders |
( |
EntityDocument | $entity, |
|
|
| $revision, |
|
|
| $languageCode ) |
◆ getTermsListItems()
Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView::getTermsListItems |
( |
| $mainLanguageCode, |
|
|
TermList | $labels, |
|
|
TermList | $descriptions, |
|
|
AliasGroupList | $aliasGroups = null ) |
- Parameters
-
string | $mainLanguageCode | Desired 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 | |
- Returns
- string[] HTML snippets
◆ $mulEnabled
bool Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView::$mulEnabled |
|
private |
◆ $templateFactory
Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView::$templateFactory |
|
private |
◆ $termsListView
Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView::$termsListView |
|
private |
◆ $textInjector
Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView::$textInjector |
|
private |
◆ CACHE_VERSION
const Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView::CACHE_VERSION = '' |
This is used as a value in the ParserCache termboxVersion
entry, prefixed with TERMBOX_VERSION.
Note: It's currently set to '' to avoid unnecessarily purging caches. Starting from the next time this is changed it should be a number, incremented every time the caches need to be purged.
◆ TERMBOX_VERSION
const Wikibase\Repo\ParserOutput\PlaceholderEmittingEntityTermsView::TERMBOX_VERSION = 1 |
The documentation for this class was generated from the following file: