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
arrayAll parameters of this renderer object.render(\Text_Diff $diff) : string
\Text_DiffA Text_Diff object.
stringThe formatted output.$_leading_context_lines
0This should be left at zero for this class, but subclasses may want to set this to other values.
$_trailing_context_lines
0This should be left at zero for this class, but subclasses may want to set this to other values.