|
MediaWiki master
|
MediaWiki default table style diff formatter. More...
Inherits Wikimedia\Diff\DiffFormatter.

Public Member Functions | |
| __construct () | |
Public Member Functions inherited from Wikimedia\Diff\DiffFormatter | |
| format ( $diff) | |
| Format a diff. | |
Static Public Member Functions | |
| static | escapeWhiteSpace ( $msg) |
Protected Member Functions | ||||
| added ( $lines) | ||||
| Writes all lines to the output buffer, each enclosed in . | ||||
| addedLine ( $line) | ||||
| HTML-escape parameter before calling this. | ||||
| blockHeader ( $xbeg, $xlen, $ybeg, $ylen) | ||||
| changed ( $orig, $closing) | ||||
| Writes the two sets of lines to the output buffer, each enclosed in . | ||||
| context ( $lines) | ||||
| Writes all lines to the output buffer, each enclosed in . | ||||
| contextLine ( $line, string $side) | ||||
| HTML-escape parameter before calling this. | ||||
| deleted ( $lines) | ||||
| Writes all lines to the output buffer, each enclosed in . | ||||
| deletedLine ( $line) | ||||
| HTML-escape parameter before calling this. | ||||
| emptyLine (string $side) | ||||
| endBlock () | ||||
| Called at the end of a block of connected edits.This default implementation does nothing. | ||||
| lines ( $lines, $prefix=' ', $color='white') | ||||
| startBlock ( $header) | ||||
Called at the start of a block of connected edits.This default implementation writes the header and a newline to the output buffer.
| ||||
| wrapLine ( $marker, $class, $line) | ||||
Protected Member Functions inherited from Wikimedia\Diff\DiffFormatter | ||||
| block ( $xbeg, $xlen, $ybeg, $ylen, &$edits) | ||||
| endDiff () | ||||
| lines ( $lines, $prefix=' ') | ||||
| Writes all (optionally prefixed) lines to the output buffer, separated by newlines. | ||||
| startDiff () | ||||
| writeOutput ( $text) | ||||
| Writes a string to the output buffer. | ||||
Additional Inherited Members | |
Protected Attributes inherited from Wikimedia\Diff\DiffFormatter | |
| int | $leadingContextLines = 0 |
| Number of leading context "lines" to preserve. | |
| int | $trailingContextLines = 0 |
| Number of trailing context "lines" to preserve. | |
MediaWiki default table style diff formatter.
Definition at line 23 of file TableDiffFormatter.php.
| Wikimedia\Diff\TableDiffFormatter::__construct | ( | ) |
Definition at line 35 of file TableDiffFormatter.php.
|
protected |
Writes all lines to the output buffer, each enclosed in .
| string[] | $lines |
Reimplemented from Wikimedia\Diff\DiffFormatter.
Definition at line 173 of file TableDiffFormatter.php.
References Wikimedia\Diff\TableDiffFormatter\addedLine(), Wikimedia\Diff\TableDiffFormatter\emptyLine(), and Wikimedia\Diff\DiffFormatter\writeOutput().
|
protected |
HTML-escape parameter before calling this.
| string | $line |
Definition at line 105 of file TableDiffFormatter.php.
References Wikimedia\Diff\TableDiffFormatter\wrapLine().
Referenced by Wikimedia\Diff\TableDiffFormatter\added(), and Wikimedia\Diff\TableDiffFormatter\changed().
|
protected |
| int | $xbeg | |
| int | $xlen | |
| int | $ybeg | |
| int | $ylen |
Reimplemented from Wikimedia\Diff\DiffFormatter.
Definition at line 61 of file TableDiffFormatter.php.
|
protected |
Writes the two sets of lines to the output buffer, each enclosed in .
| string[] | $orig | |
| string[] | $closing |
Reimplemented from Wikimedia\Diff\DiffFormatter.
Definition at line 243 of file TableDiffFormatter.php.
References Wikimedia\Diff\TableDiffFormatter\addedLine(), Wikimedia\Diff\TableDiffFormatter\deletedLine(), Wikimedia\Diff\TableDiffFormatter\emptyLine(), and Wikimedia\Diff\DiffFormatter\writeOutput().
|
protected |
Writes all lines to the output buffer, each enclosed in .
| string[] | $lines |
Reimplemented from Wikimedia\Diff\DiffFormatter.
Definition at line 223 of file TableDiffFormatter.php.
References Wikimedia\Diff\TableDiffFormatter\contextLine(), and Wikimedia\Diff\DiffFormatter\writeOutput().
|
protected |
HTML-escape parameter before calling this.
| string | $line | |
| string | $side | self::SIDE_DELETED or self::SIDE_ADDED |
Definition at line 128 of file TableDiffFormatter.php.
References Wikimedia\Diff\TableDiffFormatter\wrapLine().
Referenced by Wikimedia\Diff\TableDiffFormatter\context().
|
protected |
Writes all lines to the output buffer, each enclosed in .
| string[] | $lines |
Reimplemented from Wikimedia\Diff\DiffFormatter.
Definition at line 198 of file TableDiffFormatter.php.
References Wikimedia\Diff\TableDiffFormatter\deletedLine(), Wikimedia\Diff\TableDiffFormatter\emptyLine(), and Wikimedia\Diff\DiffFormatter\writeOutput().
|
protected |
HTML-escape parameter before calling this.
| string | $line |
Definition at line 116 of file TableDiffFormatter.php.
References Wikimedia\Diff\TableDiffFormatter\wrapLine().
Referenced by Wikimedia\Diff\TableDiffFormatter\changed(), and Wikimedia\Diff\TableDiffFormatter\deleted().
|
protected |
| string | $side | self::SIDE_DELETED or self::SIDE_ADDED |
Definition at line 164 of file TableDiffFormatter.php.
Referenced by Wikimedia\Diff\TableDiffFormatter\added(), Wikimedia\Diff\TableDiffFormatter\changed(), and Wikimedia\Diff\TableDiffFormatter\deleted().
|
protected |
Called at the end of a block of connected edits.This default implementation does nothing.
Reimplemented from Wikimedia\Diff\DiffFormatter.
Definition at line 87 of file TableDiffFormatter.php.
|
static |
| string | $msg |
Definition at line 45 of file TableDiffFormatter.php.
Referenced by Wikimedia\Diff\TableDiffFormatter\wrapLine().
|
protected |
| string[] | $lines | |
| string | $prefix | |
| string | $color |
Definition at line 95 of file TableDiffFormatter.php.
|
protected |
Called at the start of a block of connected edits.This default implementation writes the header and a newline to the output buffer.
| string | $header |
Reimplemented from Wikimedia\Diff\DiffFormatter.
Definition at line 82 of file TableDiffFormatter.php.
References Wikimedia\Diff\DiffFormatter\writeOutput().
|
protected |
| string | $marker | |
| string | string[] | $class | A single class or a list of classes |
| string | $line |
Definition at line 139 of file TableDiffFormatter.php.
References Wikimedia\Diff\TableDiffFormatter\escapeWhiteSpace().
Referenced by Wikimedia\Diff\TableDiffFormatter\addedLine(), Wikimedia\Diff\TableDiffFormatter\contextLine(), and Wikimedia\Diff\TableDiffFormatter\deletedLine().