A class to render Diffs in different formats.
This class renders the diff in classic diff format. It is intended that this class be customized via inheritance, to obtain fancier outputs.
Copyright 2004-2010 The Horde Project (http://www.horde.org/)
See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://opensource.org/licenses/lgpl-license.php.
package | Text_Diff |
---|
Text_Diff_Renderer($params = array()
)
__construct($params = array()
)
_added($lines)
_block($xbeg, $xlen, $ybeg, $ylen, $edits)
_blockHeader($xbeg, $xlen, $ybeg, $ylen)
_changed($orig, $final)
_context($lines)
_deleted($lines)
_endBlock()
_endDiff()
_lines($lines, $prefix = ' '
)
_startBlock($header)
_startDiff()
getParams() : array
array
All parameters of this renderer object.render(\Text_Diff $diff) : string
\Text_Diff
A Text_Diff object.
string
The formatted output.$_leading_context_lines
0
This should be left at zero for this class, but subclasses may want to set this to other values.
$_trailing_context_lines
0
This should be left at zero for this class, but subclasses may want to set this to other values.