MediaWiki default table style diff formatter.
More...
|
| 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.- Parameters
-
|
|
| 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.
|
|
| startDiff () |
|
| writeOutput ( $text) |
| Writes a string to the output buffer.
|
|
|
| getClassForSide (string $side) |
| Get a class for the given diff side, or throw if the side is invalid.
|
|
MediaWiki default table style diff formatter.
- Todo:
- document @newable
Definition at line 33 of file TableDiffFormatter.php.
◆ __construct()
TableDiffFormatter::__construct |
( |
| ) |
|
◆ added()
TableDiffFormatter::added |
( |
|
$lines | ) |
|
|
protected |
◆ addedLine()
TableDiffFormatter::addedLine |
( |
|
$line | ) |
|
|
protected |
◆ blockHeader()
TableDiffFormatter::blockHeader |
( |
|
$xbeg, |
|
|
|
$xlen, |
|
|
|
$ybeg, |
|
|
|
$ylen |
|
) |
| |
|
protected |
◆ changed()
TableDiffFormatter::changed |
( |
|
$orig, |
|
|
|
$closing |
|
) |
| |
|
protected |
◆ context()
TableDiffFormatter::context |
( |
|
$lines | ) |
|
|
protected |
◆ contextLine()
TableDiffFormatter::contextLine |
( |
|
$line, |
|
|
string |
$side |
|
) |
| |
|
protected |
◆ deleted()
TableDiffFormatter::deleted |
( |
|
$lines | ) |
|
|
protected |
◆ deletedLine()
TableDiffFormatter::deletedLine |
( |
|
$line | ) |
|
|
protected |
◆ emptyLine()
TableDiffFormatter::emptyLine |
( |
string |
$side | ) |
|
|
protected |
◆ endBlock()
TableDiffFormatter::endBlock |
( |
| ) |
|
|
protected |
◆ escapeWhiteSpace()
static TableDiffFormatter::escapeWhiteSpace |
( |
|
$msg | ) |
|
|
static |
◆ getClassForSide()
TableDiffFormatter::getClassForSide |
( |
string |
$side | ) |
|
|
private |
◆ lines()
TableDiffFormatter::lines |
( |
|
$lines, |
|
|
|
$prefix = ' ' , |
|
|
|
$color = 'white' |
|
) |
| |
|
protected |
◆ startBlock()
TableDiffFormatter::startBlock |
( |
|
$header | ) |
|
|
protected |
◆ wrapLine()
TableDiffFormatter::wrapLine |
( |
|
$marker, |
|
|
|
$class, |
|
|
|
$line |
|
) |
| |
|
protected |
◆ SIDE_ADDED
const TableDiffFormatter::SIDE_ADDED = 'added' |
|
private |
◆ SIDE_CLASSES
const TableDiffFormatter::SIDE_CLASSES |
|
private |
Initial value:= [
self::SIDE_DELETED => 'diff-side-deleted',
self::SIDE_ADDED => 'diff-side-added'
]
Definition at line 40 of file TableDiffFormatter.php.
◆ SIDE_DELETED
const TableDiffFormatter::SIDE_DELETED = 'deleted' |
|
private |
Constants for diff sides.
Note: these are also used for context lines.
Definition at line 38 of file TableDiffFormatter.php.
The documentation for this class was generated from the following file: