MediaWiki
REL1_22
|
A formatter that outputs unified diffs. More...
Public Member Functions | |
_added ($lines) | |
_block_header ($xbeg, $xlen, $ybeg, $ylen) | |
_changed ($orig, $closing) | |
_deleted ($lines) | |
Public Attributes | |
$leading_context_lines = 2 | |
Number of leading context "lines" to preserve. | |
$trailing_context_lines = 2 | |
Number of trailing context "lines" to preserve. |
A formatter that outputs unified diffs.
Definition at line 1060 of file DairikiDiff.php.
UnifiedDiffFormatter::_added | ( | $ | lines | ) |
$lines |
Reimplemented from DiffFormatter.
Definition at line 1067 of file DairikiDiff.php.
References $lines, and DiffFormatter\_lines().
Referenced by _changed().
UnifiedDiffFormatter::_block_header | ( | $ | xbeg, |
$ | xlen, | ||
$ | ybeg, | ||
$ | ylen | ||
) |
$xbeg | |
$xlen | |
$ybeg | |
$ylen |
Reimplemented from DiffFormatter.
Definition at line 1094 of file DairikiDiff.php.
UnifiedDiffFormatter::_changed | ( | $ | orig, |
$ | closing | ||
) |
$orig | |
$closing |
Reimplemented from DiffFormatter.
Definition at line 1082 of file DairikiDiff.php.
References _added(), and _deleted().
UnifiedDiffFormatter::_deleted | ( | $ | lines | ) |
$lines |
Reimplemented from DiffFormatter.
Definition at line 1074 of file DairikiDiff.php.
References $lines, and DiffFormatter\_lines().
Referenced by _changed().
UnifiedDiffFormatter::$leading_context_lines = 2 |
Number of leading context "lines" to preserve.
This should be left at zero for this class, but subclasses may want to set this to other values.
Reimplemented from DiffFormatter.
Definition at line 1061 of file DairikiDiff.php.
UnifiedDiffFormatter::$trailing_context_lines = 2 |
Number of trailing context "lines" to preserve.
This should be left at zero for this class, but subclasses may want to set this to other values.
Reimplemented from DiffFormatter.
Definition at line 1062 of file DairikiDiff.php.