Class for creating views for Item instances.
More...
|
| __construct (TemplateFactory $templateFactory, CacheableEntityTermsView $entityTermsView, LanguageDirectionalityLookup $languageDirectionalityLookup, StatementSectionsView $statementSectionsView, $languageCode, SiteLinksView $siteLinksView, array $siteLinkGroups, LocalizedTextProvider $textProvider) |
|
| 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 More...
|
|
| getContent (EntityDocument $entity, $revision) |
| Builds and returns the main content representing a whole WikibaseEntity. More...
|
|
| __construct (TemplateFactory $templateFactory, LanguageDirectionalityLookup $languageDirectionalityLookup, $languageCode) |
|
Class for creating views for Item instances.
For the Item this basically is what the Parser is for WikitextContent.
- Copyright
- GPL-2.0-or-later
- Author
- H. Snater < media.nosp@m.wiki.nosp@m.@snat.nosp@m.er.c.nosp@m.om >
-
Daniel Werner
◆ __construct()
◆ getContent()
Wikibase\View\ItemView::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.
◆ getHtmlForPageImage()
Wikibase\View\ItemView::getHtmlForPageImage |
( |
| ) |
|
|
private |
Builds and returns the HTML representing a WikibaseEntity's page image.
- Returns
- string
◆ getHtmlForSiteLinks()
Wikibase\View\ItemView::getHtmlForSiteLinks |
( |
Item |
$item | ) |
|
|
private |
Builds and returns the HTML representing a WikibaseEntity's site-links.
- Parameters
-
Item | $item | the entity to render |
- Returns
- string HTML
◆ getHtmlForTerms()
Wikibase\View\ItemView::getHtmlForTerms |
( |
EntityDocument |
$entity | ) |
|
|
protected |
Builds and returns the HTML for the entity's fingerprint.
- Parameters
-
- Returns
- string HTML PhanUndeclaredMethod Phan is confused by intersection types
◆ getMainHtml()
Wikibase\View\ItemView::getMainHtml |
( |
EntityDocument |
$item | ) |
|
|
protected |
◆ getSideHtml()
Wikibase\View\ItemView::getSideHtml |
( |
EntityDocument |
$entity | ) |
|
|
protected |
◆ getTitleHtml()
Wikibase\View\ItemView::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.
◆ $entityTermsView
Wikibase\View\ItemView::$entityTermsView |
|
private |
◆ $siteLinkGroups
Wikibase\View\ItemView::$siteLinkGroups |
|
private |
◆ $siteLinksView
Wikibase\View\ItemView::$siteLinksView |
|
private |
◆ $statementSectionsView
Wikibase\View\ItemView::$statementSectionsView |
|
private |
◆ $textProvider
Wikibase\View\ItemView::$textProvider |
|
private |
The documentation for this class was generated from the following file: