Inherited by ArrayDiffFormatter, TableDiffFormatter, and UnifiedDiffFormatter.
Public Member Functions | |
format ($diff) | |
Format a diff. | |
_block ($xbeg, $xlen, $ybeg, $ylen, &$edits) | |
_start_diff () | |
_end_diff () | |
_block_header ($xbeg, $xlen, $ybeg, $ylen) | |
_start_block ($header) | |
_end_block () | |
_lines ($lines, $prefix= ' ') | |
_context ($lines) | |
_added ($lines) | |
_deleted ($lines) | |
_changed ($orig, $closing) | |
Public Attributes | |
$leading_context_lines = 0 | |
Number of leading context "lines" to preserve. | |
$trailing_context_lines = 0 | |
Number of trailing context "lines" to preserve. |
This class formats the diff in classic diff format. It is intended that this class be customized via inheritance, to obtain fancier outputs.
Definition at line 1694 of file DifferenceEngine.php.
DiffFormatter::_added | ( | $ | lines | ) |
Reimplemented in UnifiedDiffFormatter, and TableDiffFormatter.
Definition at line 1830 of file DifferenceEngine.php.
References _lines().
Referenced by _block(), and _changed().
DiffFormatter::_block | ( | $ | xbeg, | |
$ | xlen, | |||
$ | ybeg, | |||
$ | ylen, | |||
&$ | edits | |||
) |
Definition at line 1776 of file DifferenceEngine.php.
References _added(), _block_header(), _changed(), _context(), _deleted(), _end_block(), _start_block(), wfProfileIn(), and wfProfileOut().
Referenced by format().
DiffFormatter::_block_header | ( | $ | xbeg, | |
$ | xlen, | |||
$ | ybeg, | |||
$ | ylen | |||
) |
Reimplemented in UnifiedDiffFormatter, and TableDiffFormatter.
Definition at line 1805 of file DifferenceEngine.php.
Referenced by _block().
DiffFormatter::_changed | ( | $ | orig, | |
$ | closing | |||
) |
Reimplemented in UnifiedDiffFormatter, and TableDiffFormatter.
Definition at line 1837 of file DifferenceEngine.php.
References _added(), and _deleted().
Referenced by _block().
DiffFormatter::_context | ( | $ | lines | ) |
Reimplemented in TableDiffFormatter.
Definition at line 1826 of file DifferenceEngine.php.
References _lines().
Referenced by _block().
DiffFormatter::_deleted | ( | $ | lines | ) |
Reimplemented in UnifiedDiffFormatter, and TableDiffFormatter.
Definition at line 1833 of file DifferenceEngine.php.
References _lines().
Referenced by _block(), and _changed().
DiffFormatter::_end_block | ( | ) |
Reimplemented in TableDiffFormatter.
Definition at line 1818 of file DifferenceEngine.php.
Referenced by _block().
DiffFormatter::_end_diff | ( | ) |
DiffFormatter::_lines | ( | $ | lines, | |
$ | prefix = ' ' | |||
) |
Definition at line 1821 of file DifferenceEngine.php.
Referenced by UnifiedDiffFormatter::_added(), _added(), _context(), UnifiedDiffFormatter::_deleted(), and _deleted().
DiffFormatter::_start_block | ( | $ | header | ) |
Reimplemented in TableDiffFormatter.
Definition at line 1814 of file DifferenceEngine.php.
Referenced by _block().
DiffFormatter::_start_diff | ( | ) |
DiffFormatter::format | ( | $ | diff | ) |
Format a diff.
$diff | object A Diff object. |
Reimplemented in ArrayDiffFormatter.
Definition at line 1717 of file DifferenceEngine.php.
References $end, _block(), _end_diff(), _start_diff(), wfProfileIn(), and wfProfileOut().
DiffFormatter::$leading_context_lines = 0 |
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 in UnifiedDiffFormatter.
Definition at line 1701 of file DifferenceEngine.php.
DiffFormatter::$trailing_context_lines = 0 |
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 in UnifiedDiffFormatter.
Definition at line 1709 of file DifferenceEngine.php.