Class for generating HTML for Claim Diffs.
More...
|
| visualizeMainSnakChange ( $headerPrefix, DiffOpChange $mainSnakChange, Snak $oldestMainSnak, Snak $newestMainSnak) |
|
| visualizeRankChange ( $headerPrefix, DiffOpChange $rankChange, Snak $oldestMainSnak, Snak $newestMainSnak) |
|
| getRankHtml ( $rank) |
|
| visualizeReferenceChanges ( $headerPrefix, Diff $changes, Snak $oldestMainSnak, Snak $newestMainSnak) |
|
| visualizeSnaks (SnakList $snaks) |
|
| visualizeQualifierChanges ( $headerPrefix, Diff $changes, Snak $oldestMainSnak, Snak $newestMainSnak) |
|
Class for generating HTML for Claim Diffs.
- Copyright
- GPL-2.0-or-later
◆ __construct()
- Parameters
-
DifferencesSnakVisualizer | $snakVisualizer | |
string | $languageCode | |
◆ getRankHtml()
Wikibase\Repo\Diff\ClaimDifferenceVisualizer::getRankHtml |
( |
| $rank | ) |
|
|
private |
- Parameters
-
- Returns
- string|null HTML
◆ visualizeClaimChange()
Wikibase\Repo\Diff\ClaimDifferenceVisualizer::visualizeClaimChange |
( |
ClaimDifference | $claimDifference, |
|
|
Statement | $baseStatement, |
|
|
array | $path = [] ) |
Generates HTML of a statement change.
- Parameters
-
ClaimDifference | $claimDifference | |
Statement | $baseStatement | The new statement, if it exists. Otherwise the old statement. |
string[] | $path | The path to prepend in the header |
- Returns
- string HTML
◆ visualizeMainSnakChange()
Wikibase\Repo\Diff\ClaimDifferenceVisualizer::visualizeMainSnakChange |
( |
| $headerPrefix, |
|
|
DiffOpChange | $mainSnakChange, |
|
|
Snak | $oldestMainSnak, |
|
|
Snak | $newestMainSnak ) |
|
private |
- Parameters
-
string | $headerPrefix | |
DiffOpChange | $mainSnakChange | |
Snak | $oldestMainSnak | The old main snak, if present; otherwise, the new main snak |
Snak | $newestMainSnak | The new main snak, if present; otherwise, the old main snak |
- Returns
- string HTML
◆ visualizeNewClaim()
Wikibase\Repo\Diff\ClaimDifferenceVisualizer::visualizeNewClaim |
( |
Statement | $statement, |
|
|
array | $path = [] ) |
Get diff html for a new claim.
- Parameters
-
Statement | $statement | |
string[] | $path | The path to prepend in the header |
- Returns
- string HTML
◆ visualizeQualifierChanges()
Wikibase\Repo\Diff\ClaimDifferenceVisualizer::visualizeQualifierChanges |
( |
| $headerPrefix, |
|
|
Diff | $changes, |
|
|
Snak | $oldestMainSnak, |
|
|
Snak | $newestMainSnak ) |
|
private |
- Parameters
-
string | $headerPrefix | |
Diff | $changes | |
Snak | $oldestMainSnak | The old main snak, if present; otherwise, the new main snak |
Snak | $newestMainSnak | The new main snak, if present; otherwise, the old main snak |
- Returns
- string HTML
◆ visualizeRankChange()
Wikibase\Repo\Diff\ClaimDifferenceVisualizer::visualizeRankChange |
( |
| $headerPrefix, |
|
|
DiffOpChange | $rankChange, |
|
|
Snak | $oldestMainSnak, |
|
|
Snak | $newestMainSnak ) |
|
private |
- Parameters
-
string | $headerPrefix | |
DiffOpChange | $rankChange | |
Snak | $oldestMainSnak | The old main snak, if present; otherwise, the new main snak |
Snak | $newestMainSnak | The new main snak, if present; otherwise, the old main snak |
- Returns
- string HTML
◆ visualizeReferenceChanges()
Wikibase\Repo\Diff\ClaimDifferenceVisualizer::visualizeReferenceChanges |
( |
| $headerPrefix, |
|
|
Diff | $changes, |
|
|
Snak | $oldestMainSnak, |
|
|
Snak | $newestMainSnak ) |
|
private |
- Parameters
-
string | $headerPrefix | |
Diff | $changes | |
Snak | $oldestMainSnak | The old main snak, if present; otherwise, the new main snak |
Snak | $newestMainSnak | The new main snak, if present; otherwise, the old main snak |
- Returns
- string HTML
◆ visualizeRemovedClaim()
Wikibase\Repo\Diff\ClaimDifferenceVisualizer::visualizeRemovedClaim |
( |
Statement | $statement, |
|
|
array | $path = [] ) |
Get diff html for a removed claim.
- Parameters
-
Statement | $statement | |
string[] | $path | The path to prepend in the header |
- Returns
- string HTML
◆ visualizeSnaks()
Wikibase\Repo\Diff\ClaimDifferenceVisualizer::visualizeSnaks |
( |
SnakList | $snaks | ) |
|
|
private |
- Parameters
-
- Returns
- string[] HTML
◆ $languageCode
Wikibase\Repo\Diff\ClaimDifferenceVisualizer::$languageCode |
|
private |
◆ $snakVisualizer
Wikibase\Repo\Diff\ClaimDifferenceVisualizer::$snakVisualizer |
|
private |
The documentation for this class was generated from the following file: