Wikibase
MediaWiki Wikibase extension
|
Base class for creating views for all different kinds of Wikibase\DataModel\Entity\EntityDocument. More...
Public Member Functions | |
__construct (TemplateFactory $templateFactory, LanguageDirectionalityLookup $languageDirectionalityLookup, $languageCode) | |
getTitleHtml (EntityDocument $entity) | |
Returns the html used for the title of the page. More... | |
Public Member Functions inherited from Wikibase\View\EntityDocumentView | |
getContent (EntityDocument $entity, $revision) | |
Builds and returns the HTML representing a whole WikibaseEntity. More... | |
Protected Member Functions | |
renderEntityView (EntityDocument $entity) | |
getMainHtml (EntityDocument $entity) | |
Builds and returns the HTML to be put into the main container of an entity's HTML structure. More... | |
getSideHtml (EntityDocument $entity) | |
Builds and Returns HTML to put into the sidebar of the entity's HTML structure. More... | |
Protected Attributes | |
$templateFactory | |
$languageCode | |
Private Attributes | |
$languageDirectionalityLookup | |
Base class for creating views for all different kinds of Wikibase\DataModel\Entity\EntityDocument.
If you want a simple interface instead see EntityDocumentView.
Wikibase\View\EntityView::__construct | ( | TemplateFactory | $templateFactory, |
LanguageDirectionalityLookup | $languageDirectionalityLookup, | ||
$languageCode | |||
) |
TemplateFactory | $templateFactory | |
LanguageDirectionalityLookup | $languageDirectionalityLookup | |
string | $languageCode |
|
abstractprotected |
Builds and returns the HTML to be put into the main container of an entity's HTML structure.
EntityDocument | $entity |
Reimplemented in Wikibase\View\PropertyView, and Wikibase\View\ItemView.
|
abstractprotected |
Builds and Returns HTML to put into the sidebar of the entity's HTML structure.
EntityDocument | $entity |
Reimplemented in Wikibase\View\PropertyView, and Wikibase\View\ItemView.
|
abstract |
Returns the html used for the title of the page.
EntityDocument | $entity |
Implements Wikibase\View\EntityDocumentView.
Reimplemented in Wikibase\View\PropertyView, and Wikibase\View\ItemView.
|
protected |
|
protected |
|
private |
|
protected |