MediaWiki REL1_33
|
A formatter that outputs unified diffs. More...
Protected Member Functions | |
added ( $lines) | |
blockHeader ( $xbeg, $xlen, $ybeg, $ylen) | |
changed ( $orig, $closing) | |
deleted ( $lines) | |
lines ( $lines, $prefix=' ') | |
Protected Member Functions inherited from DiffFormatter | |
block ( $xbeg, $xlen, $ybeg, $ylen, &$edits) | |
context ( $lines) | |
endBlock () | |
Called at the end of a block of connected edits. | |
endDiff () | |
startBlock ( $header) | |
Called at the start of a block of connected edits. | |
startDiff () | |
writeOutput ( $text) | |
Writes a string to the output buffer. | |
Protected Attributes | |
int | $leadingContextLines = 2 |
int | $trailingContextLines = 2 |
Protected Attributes inherited from DiffFormatter | |
int | $leadingContextLines = 0 |
Number of leading context "lines" to preserve. | |
int | $trailingContextLines = 0 |
Number of trailing context "lines" to preserve. | |
Additional Inherited Members | |
Public Member Functions inherited from DiffFormatter | |
format ( $diff) | |
Format a diff. | |
A formatter that outputs unified diffs.
Definition at line 31 of file UnifiedDiffFormatter.php.
|
protected |
string[] | $lines |
Reimplemented from DiffFormatter.
Definition at line 52 of file UnifiedDiffFormatter.php.
References $lines, and lines().
Referenced by changed().
|
protected |
int | $xbeg | |
int | $xlen | |
int | $ybeg | |
int | $ylen |
Reimplemented from DiffFormatter.
Definition at line 80 of file UnifiedDiffFormatter.php.
|
protected |
string[] | $orig | |
string[] | $closing |
Reimplemented from DiffFormatter.
Definition at line 67 of file UnifiedDiffFormatter.php.
|
protected |
string[] | $lines |
Reimplemented from DiffFormatter.
Definition at line 59 of file UnifiedDiffFormatter.php.
References $lines, and lines().
Referenced by changed().
|
protected |
string[] | $lines | |
string | $prefix |
Reimplemented from DiffFormatter.
Definition at line 43 of file UnifiedDiffFormatter.php.
References $line, $lines, and DiffFormatter\writeOutput().
|
protected |
Definition at line 34 of file UnifiedDiffFormatter.php.
|
protected |
Definition at line 37 of file UnifiedDiffFormatter.php.