diff_renderer
class diff_renderer
Code from pear.php.net, Text_Diff-1.1.0 package http://pear.php.net/package/Text_Diff/
Modified by phpBB Limited to meet our coding standards and being able to integrate into phpBB
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-2008 The Horde Project (http://www.horde.org/)
Properties
$_leading_context_lines | Number of leading context "lines" to preserve. |
||
$_trailing_context_lines | Number of trailing context "lines" to preserve. |
Methods
Constructor.
Get any renderer parameters.
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
No description
Our function to get the diff
Details
at line 59
__construct($params = array())
Constructor.
at line 76
array
get_params()
Get any renderer parameters.
at line 97
string
render(diff $diff)
Renders a diff.
at line 184
_block($xbeg, $xlen, $ybeg, $ylen, $edits)
No description
at line 213
_start_diff()
No description
at line 218
_end_diff()
No description
at line 223
_block_header($xbeg, $xlen, $ybeg, $ylen)
No description
at line 248
_start_block($header)
No description
at line 253
_end_block()
No description
at line 258
_lines($lines, $prefix = ' ')
No description
at line 263
_context($lines)
No description
at line 268
_added($lines)
No description
at line 273
_deleted($lines)
No description
at line 278
_changed($orig, $final)
No description
at line 286
get_diff_content($diff)
Our function to get the diff