[ Index ]

PHP Cross Reference of Unnamed Project

title

Body

[close]

/includes/diff/ -> renderer.php (summary)

(no description)

Copyright: (c) 2006 phpBB Group
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: $Id$
File Size: 860 lines (19 kb)
Included or required:0 times
Referenced: 0 times
Includes or requires: 0 files

Defines 5 classes

diff_renderer:: (15 methods):
  diff_renderer()
  get_params()
  render()
  _block()
  _start_diff()
  _end_diff()
  _block_header()
  _start_block()
  _end_block()
  _lines()
  _context()
  _added()
  _deleted()
  _changed()
  get_diff_content()

diff_renderer_unified:: (9 methods):
  get_diff_content()
  _block_header()
  _context()
  _added()
  _deleted()
  _changed()
  _start_diff()
  _end_diff()
  _end_block()

diff_renderer_inline:: (11 methods):
  get_diff_content()
  _start_diff()
  _end_diff()
  _block_header()
  _start_block()
  _lines()
  _added()
  _deleted()
  _changed()
  _split_on_words()
  _encode()

diff_renderer_raw:: (6 methods):
  get_diff_content()
  _block_header()
  _context()
  _added()
  _deleted()
  _changed()

diff_renderer_side_by_side:: (11 methods):
  get_diff_content()
  _start_diff()
  _end_diff()
  _block_header()
  _added()
  _perform_add()
  _deleted()
  _perform_delete()
  _context()
  _perform_context()
  _changed()


Class: diff_renderer  - X-Ref

Code from pear.php.net, Text_Diff-1.1.0 package
http://pear.php.net/package/Text_Diff/

Modified by phpBB Group 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/)

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


get_params()   X-Ref
Get any renderer parameters.

return: array  All parameters of this renderer object.

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

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

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

_start_diff()   X-Ref
No description

_end_diff()   X-Ref
No description

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

_start_block($header)   X-Ref
No description

_end_block()   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

get_diff_content($diff)   X-Ref
Our function to get the diff


Class: diff_renderer_unified  - X-Ref

Renders a unified diff

get_diff_content($diff)   X-Ref
Our function to get the diff


_block_header($xbeg, $xlen, $ybeg, $ylen)   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

_start_diff()   X-Ref
No description

_end_diff()   X-Ref
No description

_end_block()   X-Ref
No description

Class: diff_renderer_inline  - X-Ref

"Inline" diff renderer.

This class renders diffs in the Wiki-style "inline" format.

get_diff_content($diff)   X-Ref
Our function to get the diff


_start_diff()   X-Ref
No description

_end_diff()   X-Ref
No description

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

_start_block($header)   X-Ref
No description

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

_added($lines)   X-Ref
No description

_deleted($lines, $words = false)   X-Ref
No description

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

_split_on_words($string, $newline_escape = "\n")   X-Ref
No description

_encode(&$string)   X-Ref
No description

Class: diff_renderer_raw  - X-Ref

"raw" diff renderer.
This class could be used to output a raw unified patch file

get_diff_content($diff)   X-Ref
Our function to get the diff


_block_header($xbeg, $xlen, $ybeg, $ylen)   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

Class: diff_renderer_side_by_side  - X-Ref

"chora (Horde)" diff renderer - similar style.
This renderer class is a modified human_readable function from the Horde Framework.

get_diff_content($diff)   X-Ref
Our function to get the diff


_start_diff()   X-Ref
No description

_end_diff()   X-Ref
No description

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

_added($lines)   X-Ref
No description

_perform_add($line)   X-Ref
No description

_deleted($lines)   X-Ref
No description

_perform_delete($line)   X-Ref
No description

_context($lines)   X-Ref
No description

_perform_context($line)   X-Ref
No description

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



Generated: Wed Oct 2 15:03:47 2013 Cross-referenced by PHPXref 0.7.1