|
MediaWiki
REL1_23
|
MediaWiki default table style diff formatter. More...


Public Member Functions | |
| __construct () | |
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) | |
| 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 () | |
| endBlock () | |
| Called at the end of a block of connected edits. | |
| lines ($lines, $prefix= ' ', $color= 'white') | |
| startBlock ($header) | |
| Writes the header to the output buffer. | |
| wrapLine ($marker, $class, $line) | |
MediaWiki default table style diff formatter.
Definition at line 33 of file TableDiffFormatter.php.
Definition at line 35 of file TableDiffFormatter.php.
| TableDiffFormatter::added | ( | $ | lines | ) | [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 $lines, addedLine(), as, and emptyLine().
| TableDiffFormatter::addedLine | ( | $ | line | ) | [protected] |
HTML-escape parameter before calling this.
| string | $line |
Definition at line 96 of file TableDiffFormatter.php.
References wrapLine().
| TableDiffFormatter::blockHeader | ( | $ | xbeg, |
| $ | xlen, | ||
| $ | ybeg, | ||
| $ | ylen | ||
| ) | [protected] |
| int | $xbeg | |
| int | $xlen | |
| int | $ybeg | |
| int | $ylen |
Reimplemented from DiffFormatter.
Definition at line 62 of file TableDiffFormatter.php.
| TableDiffFormatter::changed | ( | $ | orig, |
| $ | closing | ||
| ) | [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 addedLine(), any, as, deletedLine(), emptyLine(), wfProfileIn(), and wfProfileOut().
| TableDiffFormatter::context | ( | $ | lines | ) | [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 $lines, as, and contextLine().
| TableDiffFormatter::contextLine | ( | $ | line | ) | [protected] |
HTML-escape parameter before calling this.
| string | $line |
Definition at line 118 of file TableDiffFormatter.php.
References wrapLine().
Referenced by context().
| TableDiffFormatter::deleted | ( | $ | lines | ) | [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 $lines, as, deletedLine(), and emptyLine().
| TableDiffFormatter::deletedLine | ( | $ | line | ) | [protected] |
HTML-escape parameter before calling this.
| string | $line |
Definition at line 107 of file TableDiffFormatter.php.
References wrapLine().
| TableDiffFormatter::emptyLine | ( | ) | [protected] |
Definition at line 141 of file TableDiffFormatter.php.
| TableDiffFormatter::endBlock | ( | ) | [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 TableDiffFormatter::escapeWhiteSpace | ( | $ | msg | ) | [static] |
| string | $msg |
Definition at line 46 of file TableDiffFormatter.php.
Referenced by wrapLine().
| TableDiffFormatter::lines | ( | $ | lines, |
| $ | prefix = ' ', |
||
| $ | color = 'white' |
||
| ) | [protected] |
| string[] | $lines | |
| string | $prefix | |
| string | $color |
Definition at line 86 of file TableDiffFormatter.php.
| TableDiffFormatter::startBlock | ( | $ | header | ) | [protected] |
Writes the header to the output buffer.
| string | $header |
Reimplemented from DiffFormatter.
Definition at line 74 of file TableDiffFormatter.php.
| TableDiffFormatter::wrapLine | ( | $ | marker, |
| $ | class, | ||
| $ | line | ||
| ) | [protected] |
| string | $marker | |
| string | $class | Unused |
| string | $line |
Definition at line 129 of file TableDiffFormatter.php.
References escapeWhiteSpace(), and tags().
Referenced by addedLine(), contextLine(), and deletedLine().