Class for generating views of DiffOp objects.
More...
Class for generating views of DiffOp objects.
- Copyright
- GPL-2.0-or-later
◆ __construct()
Wikibase\Repo\Diff\BasicDiffView::__construct |
( |
array |
$path, |
|
|
Diff |
$diff |
|
) |
| |
◆ generateChangeOpHtml()
Wikibase\Repo\Diff\BasicDiffView::generateChangeOpHtml |
( |
|
$oldValue, |
|
|
|
$newValue, |
|
|
array |
$path |
|
) |
| |
|
protected |
Generates HTML for an change diffOp.
- Parameters
-
string | null | $oldValue | |
string | null | $newValue | |
string[] | $path | |
- Returns
- string
◆ generateDiffHeaderHtml()
Wikibase\Repo\Diff\BasicDiffView::generateDiffHeaderHtml |
( |
|
$name | ) |
|
|
protected |
Generates HTML for the header of the diff operation.
- Parameters
-
- Returns
- string
◆ getAddedLine()
Wikibase\Repo\Diff\BasicDiffView::getAddedLine |
( |
|
$value, |
|
|
array |
$path |
|
) |
| |
|
private |
- Parameters
-
string | $value | |
string[] | $path | |
- Returns
- string
◆ getChangedLine()
Wikibase\Repo\Diff\BasicDiffView::getChangedLine |
( |
|
$tag, |
|
|
|
$value, |
|
|
array |
$path |
|
) |
| |
|
private |
- Parameters
-
string | $tag | |
string | $value | |
string[] | $path | |
- Returns
- string
◆ getDeletedLine()
Wikibase\Repo\Diff\BasicDiffView::getDeletedLine |
( |
|
$value, |
|
|
array |
$path |
|
) |
| |
|
private |
- Parameters
-
string | $value | |
string[] | $path | |
- Returns
- string
◆ getHtml()
Wikibase\Repo\Diff\BasicDiffView::getHtml |
( |
| ) |
|
◆ $diff
Wikibase\Repo\Diff\BasicDiffView::$diff |
|
private |
◆ $path
Wikibase\Repo\Diff\BasicDiffView::$path |
|
private |
The documentation for this class was generated from the following file: