Wikibase
MediaWiki Wikibase extension
|
Visualizes Snaks for difference views. More...
Public Member Functions | |
__construct (EntityIdFormatter $propertyIdFormatter, SnakFormatter $snakDetailsFormatter, SnakFormatter $snakBreadCrumbFormatter, $languageCode) | |
getDetailedValue (Snak $snak=null) | |
getPropertyHeader (Snak $snak=null) | |
Get formatted header for a snak, including the snak's property label, but not the snak's value. More... | |
getPropertyAndValueHeader (Snak $snak) | |
Get formatted header for a snak, including the snak's property label and value. More... | |
getPropertyAndDetailedValue (Snak $snak) | |
Get a detailed formatted snak, including the snak's property label and value. More... | |
Private Member Functions | |
formatPropertyId (EntityId $entityId) | |
getColonSeparatedHtml ( $before, $after) | |
Private Attributes | |
$languageCode | |
$propertyIdFormatter | |
$snakBreadCrumbFormatter | |
$snakDetailsFormatter | |
Visualizes Snaks for difference views.
Wikibase\Repo\Diff\DifferencesSnakVisualizer::__construct | ( | EntityIdFormatter | $propertyIdFormatter, |
SnakFormatter | $snakDetailsFormatter, | ||
SnakFormatter | $snakBreadCrumbFormatter, | ||
$languageCode | |||
) |
EntityIdFormatter | $propertyIdFormatter | Formatter for IDs, must generate HTML. |
SnakFormatter | $snakDetailsFormatter | detailed Formatter for Snaks, must generate HTML. |
SnakFormatter | $snakBreadCrumbFormatter | terse Formatter for Snaks, must generate HTML. |
string | $languageCode |
InvalidArgumentException |
|
private |
EntityId | $entityId |
|
private |
string | $before | HTML |
string | $after | HTML |
Wikibase\Repo\Diff\DifferencesSnakVisualizer::getDetailedValue | ( | Snak | $snak = null | ) |
Snak | null | $snak |
Wikibase\Repo\Diff\DifferencesSnakVisualizer::getPropertyAndDetailedValue | ( | Snak | $snak | ) |
Get a detailed formatted snak, including the snak's property label and value.
Snak | $snak |
Wikibase\Repo\Diff\DifferencesSnakVisualizer::getPropertyAndValueHeader | ( | Snak | $snak | ) |
Get formatted header for a snak, including the snak's property label and value.
Snak | $snak |
Wikibase\Repo\Diff\DifferencesSnakVisualizer::getPropertyHeader | ( | Snak | $snak = null | ) |
Get formatted header for a snak, including the snak's property label, but not the snak's value.
Snak | null | $snak |
|
private |
|
private |
|
private |
|
private |