Class for creating views for Property instances.
More...
|
| | __construct (TemplateFactory $templateFactory, CacheableEntityTermsView $entityTermsView, LanguageDirectionalityLookup $languageDirectionalityLookup, StatementSectionsView $statementSectionsView, DataTypeFactory $dataTypeFactory, $languageCode, LocalizedTextProvider $textProvider, array $viewOptions,) |
| |
| | getTitleHtml (EntityDocument $entity) |
| | Returns the html used for the title of the page.- See also
- ParserOutput::setDisplayTitle
- Parameters
-
- Returns
- string HTML
|
| |
| | getContent (EntityDocument $entity, $revision) |
| | Builds and returns the main content representing a whole WikibaseEntity.
|
| |
| | __construct (TemplateFactory $templateFactory, LanguageDirectionalityLookup $languageDirectionalityLookup, $languageCode, array $viewOptions=[],) |
| |
| | getParserOutputOptions () |
| |
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 | |
| array | $viewOptions | |
◆ 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()
Builds and returns the HTML for the entity's fingerprint.
- Parameters
-
- Returns
- string HTML
◆ getMainHtml()
◆ getSideHtml()
◆ getTitleHtml()
Returns the html used for the title of the page.
- See also
- ParserOutput::setDisplayTitle
- Parameters
-
- Returns
- string HTML
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: