\Text_Diff_Renderer
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.
$Horde: framework/Text_Diff/Diff/Renderer.php,v 1.5.10.12 2009/07/24 13:26:40 jan Exp $
Copyright 2004-2009 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.
Synopsis
class Text_Diff_Renderer
{
- // members
- public integer $_leading_context_lines = 0;
- public integer $_trailing_context_lines = 0;
- // methods
- public void Text_Diff_Renderer()
- public array getParams()
- public string render()
- public void _block()
- public void _startDiff()
- public void _endDiff()
- public void _blockHeader()
- public void _startBlock()
- public void _endBlock()
- public void _lines()
- public void _context()
- public void _added()
- public void _deleted()
- public void _changed()
Members
public
-
$_leading_context_lines
Number of leading context "lines" to preserve. -
$_trailing_context_lines
Number of trailing context "lines" to preserve.
Methods
public
- Text_Diff_Renderer() — Constructor.
- _added()
- _block()
- _blockHeader()
- _changed()
- _context()
- _deleted()
- _endBlock()
- _endDiff()
- _lines()
- _startBlock()
- _startDiff()
- getParams() — Get any renderer parameters.
- render() — Renders a diff.