MediaWiki
master
|
MediaWiki default table style diff formatter. More...
Public Member Functions | |
__construct () | |
![]() | |
format ( $diff) | |
Format a diff. More... | |
Static Public Member Functions | |
static | escapeWhiteSpace ( $msg) |
Protected Member Functions | ||||
added ( $lines) | ||||
Writes all lines to the output buffer, each enclosed in . More... | ||||
addedLine ( $line) | ||||
HTML-escape parameter before calling this. More... | ||||
blockHeader ( $xbeg, $xlen, $ybeg, $ylen) | ||||
changed ( $orig, $closing) | ||||
Writes the two sets of lines to the output buffer, each enclosed in . More... | ||||
context ( $lines) | ||||
Writes all lines to the output buffer, each enclosed in . More... | ||||
contextLine ( $line, string $side) | ||||
HTML-escape parameter before calling this. More... | ||||
deleted ( $lines) | ||||
Writes all lines to the output buffer, each enclosed in . More... | ||||
deletedLine ( $line) | ||||
HTML-escape parameter before calling this. More... | ||||
emptyLine (string $side) | ||||
endBlock () | ||||
Called at the end of a block of connected edits.This default implementation does nothing. More... | ||||
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) | ||||
![]() | ||||
block ( $xbeg, $xlen, $ybeg, $ylen, &$edits) | ||||
endDiff () | ||||
lines ( $lines, $prefix=' ') | ||||
Writes all (optionally prefixed) lines to the output buffer, separated by newlines. More... | ||||
startDiff () | ||||
writeOutput ( $text) | ||||
Writes a string to the output buffer. More... | ||||
Additional Inherited Members | |
![]() | |
int | $leadingContextLines = 0 |
Number of leading context "lines" to preserve. More... | |
int | $trailingContextLines = 0 |
Number of trailing context "lines" to preserve. More... | |
MediaWiki default table style diff formatter.
Definition at line 35 of file TableDiffFormatter.php.
TableDiffFormatter::__construct | ( | ) |
Definition at line 47 of file TableDiffFormatter.php.
|
protected |
Writes all lines to the output buffer, each enclosed in .
string[] | $lines |
Reimplemented from DiffFormatter.
Definition at line 181 of file TableDiffFormatter.php.
References $lines, addedLine(), emptyLine(), and DiffFormatter\writeOutput().
|
protected |
HTML-escape parameter before calling this.
string | $line |
Definition at line 117 of file TableDiffFormatter.php.
References wrapLine().
|
protected |
int | $xbeg | |
int | $xlen | |
int | $ybeg | |
int | $ylen |
Reimplemented from DiffFormatter.
Definition at line 73 of file TableDiffFormatter.php.
|
protected |
Writes the two sets of lines to the output buffer, each enclosed in .
string[] | $orig | |
string[] | $closing |
Reimplemented from DiffFormatter.
Definition at line 251 of file TableDiffFormatter.php.
References addedLine(), deletedLine(), emptyLine(), and DiffFormatter\writeOutput().
|
protected |
Writes all lines to the output buffer, each enclosed in .
string[] | $lines |
Reimplemented from DiffFormatter.
Definition at line 231 of file TableDiffFormatter.php.
References $lines, contextLine(), and DiffFormatter\writeOutput().
|
protected |
HTML-escape parameter before calling this.
string | $line | |
string | $side | self::SIDE_DELETED or self::SIDE_ADDED |
Definition at line 140 of file TableDiffFormatter.php.
References wrapLine().
Referenced by context().
|
protected |
Writes all lines to the output buffer, each enclosed in .
string[] | $lines |
Reimplemented from DiffFormatter.
Definition at line 206 of file TableDiffFormatter.php.
References $lines, deletedLine(), emptyLine(), and DiffFormatter\writeOutput().
|
protected |
HTML-escape parameter before calling this.
string | $line |
Definition at line 128 of file TableDiffFormatter.php.
References wrapLine().
|
protected |
string | $side | self::SIDE_DELETED or self::SIDE_ADDED |
Definition at line 172 of file TableDiffFormatter.php.
|
protected |
Called at the end of a block of connected edits.This default implementation does nothing.
Reimplemented from DiffFormatter.
Definition at line 99 of file TableDiffFormatter.php.
|
static |
string | $msg |
Definition at line 57 of file TableDiffFormatter.php.
Referenced by wrapLine().
|
protected |
string[] | $lines | |
string | $prefix | |
string | $color |
Definition at line 107 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 DiffFormatter.
Definition at line 94 of file TableDiffFormatter.php.
References $header, and DiffFormatter\writeOutput().
|
protected |
string | $marker | |
string | string[] | $class | A single class or a list of classes |
string | $line |
Definition at line 151 of file TableDiffFormatter.php.
References escapeWhiteSpace().
Referenced by addedLine(), contextLine(), and deletedLine().