Generates HTML to display statements.
More...
Generates HTML to display statements.
- Copyright
- GPL-2.0-or-later
- Author
- Bene* < benes.nosp@m.tar..nosp@m.wikim.nosp@m.edia.nosp@m.@gmai.nosp@m.l.co.nosp@m.m >
-
Daniel Kinzler
◆ __construct()
◆ getHtml()
Wikibase\View\StatementGroupListView::getHtml |
( |
array |
$statements, |
|
|
|
$idPrefix = '' |
|
) |
| |
Builds and returns the HTML representing a WikibaseEntity's statements.
- Parameters
-
Statement[] | $statements | |
string | $idPrefix | - optional prefix for statement group ids |
- Returns
- string HTML
◆ getHtmlForStatementGroupView()
Wikibase\View\StatementGroupListView::getHtmlForStatementGroupView |
( |
array |
$statements, |
|
|
|
$prefix |
|
) |
| |
|
private |
- Parameters
-
Statement[] | $statements | |
string | $prefix | |
- Returns
- string HTML
◆ getHtmlForStatementListView()
Wikibase\View\StatementGroupListView::getHtmlForStatementListView |
( |
array |
$statements, |
|
|
|
$addStatementHtml |
|
) |
| |
|
private |
- Parameters
-
Statement[] | $statements | |
string | $addStatementHtml | |
- Returns
- string HTML
◆ groupStatementsByProperties()
Wikibase\View\StatementGroupListView::groupStatementsByProperties |
( |
array |
$statements | ) |
|
|
private |
- Parameters
-
- Returns
- array[]
◆ orderStatementsByPropertyOrder()
Wikibase\View\StatementGroupListView::orderStatementsByPropertyOrder |
( |
array |
$statementsByProperty | ) |
|
|
private |
- Parameters
-
array[] | $statementsByProperty | The array keys are expected to be Property ID serializations. |
- Returns
- array[]
◆ $editSectionGenerator
Wikibase\View\StatementGroupListView::$editSectionGenerator |
|
private |
◆ $propertyIdFormatter
Wikibase\View\StatementGroupListView::$propertyIdFormatter |
|
private |
◆ $propertyOrderProvider
Wikibase\View\StatementGroupListView::$propertyOrderProvider |
|
private |
◆ $statementHtmlGenerator
Wikibase\View\StatementGroupListView::$statementHtmlGenerator |
|
private |
◆ $templateFactory
Wikibase\View\StatementGroupListView::$templateFactory |
|
private |
◆ ID_PREFIX_SEPARATOR
const Wikibase\View\StatementGroupListView::ID_PREFIX_SEPARATOR = '-' |
The documentation for this class was generated from the following file: