Wikibase
MediaWiki Wikibase extension
|
Class for generating views of DiffOp objects. More...
Public Member Functions | |
__construct (array $path, Diff $diff, SiteLookup $siteLookup, EntityIdFormatter $entityIdFormatter, MessageLocalizer $messageLocalizer) | |
getHtml () | |
Builds and returns the HTML to represent the Diff. More... | |
Protected Member Functions | |
generateChangeOpHtml ( $oldValue, $newValue, array $path) | |
Generates HTML for an change diffOp. More... | |
generateDiffHeaderHtml ( $name) | |
Generates HTML for the header of the diff operation. More... | |
Private Member Functions | |
getDeletedLine ( $value, array $path) | |
getAddedLine ( $value, array $path) | |
getChangedLine ( $tag, $value, array $path) | |
getSiteLinkElement ( $siteId, $pageName) | |
getBadgeLinkElement ( $idString) | |
Private Attributes | |
$path | |
$diff | |
$siteLookup | |
$entityIdFormatter | |
$messageLocalizer | |
$siteLinkPath | |
Class for generating views of DiffOp objects.
Wikibase\Repo\Diff\ItemDiffView::__construct | ( | array | $path, |
Diff | $diff, | ||
SiteLookup | $siteLookup, | ||
EntityIdFormatter | $entityIdFormatter, | ||
MessageLocalizer | $messageLocalizer | ||
) |
string[] | $path | |
Diff | $diff | |
SiteLookup | $siteLookup | |
EntityIdFormatter | $entityIdFormatter | that must return only HTML! otherwise injections might be possible |
MessageLocalizer | $messageLocalizer |
|
protected |
Generates HTML for an change diffOp.
string | null | $oldValue | |
string | null | $newValue | |
string[] | $path |
|
protected |
Generates HTML for the header of the diff operation.
string | $name |
|
private |
string | $value | |
string[] | $path |
|
private |
string | $idString |
|
private |
string | $tag | |
string | $value | |
string[] | $path |
|
private |
string | $value | |
string[] | $path |
Wikibase\Repo\Diff\ItemDiffView::getHtml | ( | ) |
Builds and returns the HTML to represent the Diff.
Implements Wikibase\Repo\Diff\DiffView.
|
private |
string | $siteId | |
string | $pageName |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |