Visualizes Snaks for difference views.
More...
Visualizes Snaks for difference views.
- Copyright
- GPL-2.0-or-later
- Author
- Adrian Heine adria.nosp@m.n.he.nosp@m.ine@w.nosp@m.ikim.nosp@m.edia..nosp@m.de
◆ __construct()
- Parameters
-
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 | |
- Exceptions
-
◆ formatPropertyId()
Wikibase\Repo\Diff\DifferencesSnakVisualizer::formatPropertyId |
( |
EntityId | $entityId | ) |
|
|
private |
- Parameters
-
- Returns
- string HTML
◆ getColonSeparatedHtml()
Wikibase\Repo\Diff\DifferencesSnakVisualizer::getColonSeparatedHtml |
( |
| $before, |
|
|
| $after ) |
|
private |
- Parameters
-
string | $before | HTML |
string | $after | HTML |
- Returns
- string HTML
◆ getDetailedValue()
Wikibase\Repo\Diff\DifferencesSnakVisualizer::getDetailedValue |
( |
Snak | $snak = null | ) |
|
- Parameters
-
- Returns
- string|null HTML
◆ getPropertyAndDetailedValue()
Wikibase\Repo\Diff\DifferencesSnakVisualizer::getPropertyAndDetailedValue |
( |
Snak | $snak | ) |
|
Get a detailed formatted snak, including the snak's property label and value.
- Parameters
-
- Returns
- string HTML
◆ getPropertyAndValueHeader()
Wikibase\Repo\Diff\DifferencesSnakVisualizer::getPropertyAndValueHeader |
( |
Snak | $snak | ) |
|
Get formatted header for a snak, including the snak's property label and value.
- Parameters
-
- Returns
- string HTML
◆ getPropertyHeader()
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.
- Parameters
-
- Returns
- string HTML
◆ $languageCode
Wikibase\Repo\Diff\DifferencesSnakVisualizer::$languageCode |
|
private |
◆ $propertyIdFormatter
Wikibase\Repo\Diff\DifferencesSnakVisualizer::$propertyIdFormatter |
|
private |
◆ $snakBreadCrumbFormatter
Wikibase\Repo\Diff\DifferencesSnakVisualizer::$snakBreadCrumbFormatter |
|
private |
◆ $snakDetailsFormatter
Wikibase\Repo\Diff\DifferencesSnakVisualizer::$snakDetailsFormatter |
|
private |
The documentation for this class was generated from the following file: