Wikibase
MediaWiki Wikibase extension
|
Base class for generating Snak html. More...
Public Member Functions | |
__construct (TemplateFactory $templateFactory, SnakFormatter $snakFormatter, EntityIdFormatter $propertyIdFormatter, LocalizedTextProvider $textProvider) | |
getSnakHtml (Snak $snak, $showPropertyLink=false) | |
Generates the HTML for a single snak. | |
Private Member Functions | |
makePropertyLink (Snak $snak) | |
getSnakViewVariation (Snak $snak) | |
getFormattedSnakValue (Snak $snak) | |
@fixme handle errors more consistently as done in JS UI, and perhaps add localised exception messages. | |
getInvalidSnakMessage () | |
getPropertyNotFoundMessage () | |
Private Attributes | |
$templateFactory | |
$snakFormatter | |
$propertyIdFormatter | |
$textProvider | |
Base class for generating Snak html.
Wikibase\View\SnakHtmlGenerator::__construct | ( | TemplateFactory | $templateFactory, |
SnakFormatter | $snakFormatter, | ||
EntityIdFormatter | $propertyIdFormatter, | ||
LocalizedTextProvider | $textProvider | ||
) |
TemplateFactory | $templateFactory | |
SnakFormatter | $snakFormatter | |
EntityIdFormatter | $propertyIdFormatter | |
LocalizedTextProvider | $textProvider |
InvalidArgumentException |
|
private |
@fixme handle errors more consistently as done in JS UI, and perhaps add localised exception messages.
Snak | $snak |
|
private |
|
private |
Wikibase\View\SnakHtmlGenerator::getSnakHtml | ( | Snak | $snak, |
$showPropertyLink = false |
|||
) |
Generates the HTML for a single snak.
Snak | $snak | |
bool | $showPropertyLink |
|
private |
Snak | $snak |
|
private |
Snak | $snak |
|
private |
|
private |
|
private |
|
private |