MediaWiki
1.23.2
|
MediaWiki default table style diff formatter. More...
Public Member Functions | |
__construct () | |
Public Member Functions inherited from DiffFormatter | |
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) | |
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 () | |
endBlock () | |
Called at the end of a block of connected edits. More... | |
lines ( $lines, $prefix=' ', $color='white') | |
startBlock ( $header) | |
Writes the header to the output buffer. More... | |
wrapLine ( $marker, $class, $line) | |
Protected Member Functions inherited from DiffFormatter | |
block ( $xbeg, $xlen, $ybeg, $ylen, &$edits) | |
endDiff () | |
lines ( $lines, $prefix=' ') | |
Writes all (optionally prefixed) lines to the output buffer, separated by newlines. More... | |
startDiff () | |
Additional Inherited Members | |
Protected Attributes inherited from DiffFormatter | |
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 33 of file TableDiffFormatter.php.
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 DiffFormatter.
Definition at line 150 of file TableDiffFormatter.php.
References $line, $lines, addedLine(), as, and emptyLine().
|
protected |
HTML-escape parameter before calling this.
string | $line |
Definition at line 96 of file TableDiffFormatter.php.
References $line, and wrapLine().
|
protected |
int | $xbeg | |
int | $xlen | |
int | $ybeg | |
int | $ylen |
Reimplemented from DiffFormatter.
Definition at line 62 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 190 of file TableDiffFormatter.php.
References $line, addedLine(), as, deletedLine(), emptyLine(), wfProfileIn(), and wfProfileOut().
|
protected |
Writes all lines to the output buffer, each enclosed in .
string[] | $lines |
Reimplemented from DiffFormatter.
Definition at line 176 of file TableDiffFormatter.php.
References $line, $lines, as, and contextLine().
|
protected |
HTML-escape parameter before calling this.
string | $line |
Definition at line 118 of file TableDiffFormatter.php.
References $line, and wrapLine().
Referenced by context().
|
protected |
Writes all lines to the output buffer, each enclosed in .
string[] | $lines |
Reimplemented from DiffFormatter.
Definition at line 163 of file TableDiffFormatter.php.
References $line, $lines, as, deletedLine(), and emptyLine().
|
protected |
HTML-escape parameter before calling this.
string | $line |
Definition at line 107 of file TableDiffFormatter.php.
References $line, and wrapLine().
|
protected |
Definition at line 141 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 78 of file TableDiffFormatter.php.
|
static |
string | $msg |
Definition at line 46 of file TableDiffFormatter.php.
Referenced by wrapLine().
|
protected |
string[] | $lines | |
string | $prefix | |
string | $color |
Definition at line 86 of file TableDiffFormatter.php.
|
protected |
Writes the header to the output buffer.
string | $header |
Reimplemented from DiffFormatter.
Definition at line 74 of file TableDiffFormatter.php.
|
protected |
string | $marker | |
string | $class | Unused |
string | $line |
Definition at line 129 of file TableDiffFormatter.php.
References $line, escapeWhiteSpace(), and Xml\tags().
Referenced by addedLine(), contextLine(), and deletedLine().