[ Index ]

PHP Cross Reference of WordPress Trunk (Updated Daily)

title

Body

[close]

/wp-includes/Text/Diff/ -> Renderer.php (summary)

(no description)

File Size: 242 lines (7 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

Text_Diff_Renderer:: (15 methods):
  __construct()
  Text_Diff_Renderer()
  getParams()
  render()
  _block()
  _startDiff()
  _endDiff()
  _blockHeader()
  _startBlock()
  _endBlock()
  _lines()
  _context()
  _added()
  _deleted()
  _changed()


Class: Text_Diff_Renderer  - X-Ref

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.

__construct( $params = array()   X-Ref
Constructor.


Text_Diff_Renderer( $params = array()   X-Ref
PHP4 constructor.


getParams()   X-Ref
Get any renderer parameters.

return: array  All parameters of this renderer object.

render($diff)   X-Ref
Renders a diff.

param: Text_Diff $diff  A Text_Diff object.
return: string  The formatted output.

_block($xbeg, $xlen, $ybeg, $ylen, &$edits)   X-Ref
No description

_startDiff()   X-Ref
No description

_endDiff()   X-Ref
No description

_blockHeader($xbeg, $xlen, $ybeg, $ylen)   X-Ref
No description

_startBlock($header)   X-Ref
No description

_endBlock()   X-Ref
No description

_lines($lines, $prefix = ' ')   X-Ref
No description

_context($lines)   X-Ref
No description

_added($lines)   X-Ref
No description

_deleted($lines)   X-Ref
No description

_changed($orig, $final)   X-Ref
No description



Generated: Sat Nov 23 20:47:33 2019 Cross-referenced by PHPXref 0.7