Class for creating views for Property instances.
More...
|
| getHtmlForDataType ( $propertyType) |
| Builds and returns the HTML representing a property entity's data type information.
|
|
| getHtmlForTerms (EntityDocument $entity) |
| Builds and returns the HTML for the entity's fingerprint.
|
|
Class for creating views for Property instances.
For the Property this basically is what the Parser is for WikitextContent.
- Copyright
- GPL-2.0-or-later
- Author
- Daniel Werner
-
H. Snater < media.nosp@m.wiki.nosp@m.@snat.nosp@m.er.c.nosp@m.om >
◆ __construct()
- See also
- EntityView::__construct
- Parameters
-
TemplateFactory | $templateFactory | |
CacheableEntityTermsView | $entityTermsView | |
LanguageDirectionalityLookup | $languageDirectionalityLookup | |
StatementSectionsView | $statementSectionsView | |
DataTypeFactory | $dataTypeFactory | |
string | $languageCode | |
LocalizedTextProvider | $textProvider | |
◆ getContent()
Wikibase\View\PropertyView::getContent |
( |
EntityDocument |
$entity, |
|
|
|
$revision |
|
) |
| |
Builds and returns the main content representing a whole WikibaseEntity.
- Parameters
-
EntityDocument | $entity | the entity to render |
int | $revision | The revision of the entity to render |
- Returns
- ViewContent
Implements Wikibase\View\EntityDocumentView.
◆ getHtmlForDataType()
Wikibase\View\PropertyView::getHtmlForDataType |
( |
|
$propertyType | ) |
|
|
private |
Builds and returns the HTML representing a property entity's data type information.
- Parameters
-
- Returns
- string HTML
◆ getHtmlForTerms()
Wikibase\View\PropertyView::getHtmlForTerms |
( |
EntityDocument |
$entity | ) |
|
|
private |
Builds and returns the HTML for the entity's fingerprint.
- Parameters
-
- Returns
- string HTML PhanUndeclaredMethod Phan is confused by intersection types
◆ getMainHtml()
Wikibase\View\PropertyView::getMainHtml |
( |
EntityDocument |
$property | ) |
|
|
protected |
◆ getSideHtml()
Wikibase\View\PropertyView::getSideHtml |
( |
EntityDocument |
$entity | ) |
|
|
protected |
◆ getTitleHtml()
Wikibase\View\PropertyView::getTitleHtml |
( |
EntityDocument |
$entity | ) |
|
Returns the html used for the title of the page.
- See also
- ParserOutput::setDisplayTitle
- Parameters
-
- Returns
- string HTML
PhanUndeclaredMethod Phan is confused by intersection types
Reimplemented from Wikibase\View\EntityView.
◆ $dataTypeFactory
Wikibase\View\PropertyView::$dataTypeFactory |
|
private |
◆ $entityTermsView
Wikibase\View\PropertyView::$entityTermsView |
|
private |
◆ $statementSectionsView
Wikibase\View\PropertyView::$statementSectionsView |
|
private |
◆ $textProvider
Wikibase\View\PropertyView::$textProvider |
|
private |
The documentation for this class was generated from the following file: