ILIAS
Release_5_0_x_branch Revision 61816
|
Public Member Functions | |
Text_Diff_Renderer ($params=array()) | |
Constructor. | |
getParams () | |
Get any renderer parameters. | |
render ($diff) | |
Renders a diff. | |
_block ($xbeg, $xlen, $ybeg, $ylen, &$edits) | |
_startDiff () | |
_endDiff () | |
_blockHeader ($xbeg, $xlen, $ybeg, $ylen) | |
_startBlock ($header) | |
_endBlock () | |
_lines ($lines, $prefix= ' ') | |
_context ($lines) | |
_added ($lines) | |
_deleted ($lines) | |
_changed ($orig, $final) |
Data Fields | |
$_leading_context_lines = 0 | |
Number of leading context "lines" to preserve. | |
$_trailing_context_lines = 0 | |
Number of trailing context "lines" to preserve. |
Definition at line 12 of file Renderer.php.
Text_Diff_Renderer::_added | ( | $lines | ) |
Reimplemented in Text_Diff_Renderer_unified.
Definition at line 194 of file Renderer.php.
References _lines().
Referenced by _block(), and _changed().
Text_Diff_Renderer::_block | ( | $xbeg, | |
$xlen, | |||
$ybeg, | |||
$ylen, | |||
& | $edits | ||
) |
Definition at line 125 of file Renderer.php.
References _added(), _blockHeader(), _changed(), _context(), _deleted(), _endBlock(), and _startBlock().
Referenced by render().
Text_Diff_Renderer::_blockHeader | ( | $xbeg, | |
$xlen, | |||
$ybeg, | |||
$ylen | |||
) |
Reimplemented in Text_Diff_Renderer_unified.
Definition at line 162 of file Renderer.php.
Referenced by _block().
Text_Diff_Renderer::_changed | ( | $orig, | |
$final | |||
) |
Reimplemented in Text_Diff_Renderer_unified.
Definition at line 204 of file Renderer.php.
References _added(), and _deleted().
Referenced by _block().
Text_Diff_Renderer::_context | ( | $lines | ) |
Definition at line 189 of file Renderer.php.
References _lines().
Referenced by _block().
Text_Diff_Renderer::_deleted | ( | $lines | ) |
Reimplemented in Text_Diff_Renderer_unified.
Definition at line 199 of file Renderer.php.
References _lines().
Referenced by _block(), and _changed().
Text_Diff_Renderer::_endBlock | ( | ) |
Definition at line 179 of file Renderer.php.
Referenced by _block().
Text_Diff_Renderer::_endDiff | ( | ) |
Definition at line 157 of file Renderer.php.
Referenced by render().
Text_Diff_Renderer::_lines | ( | $lines, | |
$prefix = ' ' |
|||
) |
Definition at line 184 of file Renderer.php.
Referenced by Text_Diff_Renderer_unified\_added(), _added(), _context(), Text_Diff_Renderer_unified\_deleted(), and _deleted().
Text_Diff_Renderer::_startBlock | ( | $header | ) |
Definition at line 174 of file Renderer.php.
Referenced by _block().
Text_Diff_Renderer::_startDiff | ( | ) |
Definition at line 152 of file Renderer.php.
Referenced by render().
Text_Diff_Renderer::getParams | ( | ) |
Get any renderer parameters.
Definition at line 48 of file Renderer.php.
Text_Diff_Renderer::render | ( | $diff | ) |
Renders a diff.
Definition at line 67 of file Renderer.php.
References $_leading_context_lines, $_trailing_context_lines, _block(), _endDiff(), and _startDiff().
Text_Diff_Renderer::Text_Diff_Renderer | ( | $params = array() | ) |
Constructor.
Definition at line 33 of file Renderer.php.
Text_Diff_Renderer::$_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.
Definition at line 20 of file Renderer.php.
Referenced by render().
Text_Diff_Renderer::$_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.
Definition at line 28 of file Renderer.php.
Referenced by render().