phpBB API Documentation
Class

diff_renderer_side_by_side

class diff_renderer_side_by_side extends diff_renderer

"chora (Horde)" diff renderer - similar style.

This renderer class is a modified human_readable function from the Horde Framework.

Properties

$_leading_context_lines
$_trailing_context_lines
$lines
$cols
$state
$data

Methods

diff_renderer($params = array())

Constructor.

from diff_renderer
array get_params()

Get any renderer parameters.

from diff_renderer
string render(diff $diff)

Renders a diff.

from diff_renderer
_block($xbeg, $xlen, $ybeg, $ylen, $edits)

from diff_renderer
_start_diff()

_end_diff()

_block_header($xbeg, $xlen, $ybeg, $ylen)

_start_block($header)

from diff_renderer
_end_block()

from diff_renderer
_lines($lines, $prefix = ' ')

from diff_renderer
_context($lines)

_added($lines)

_deleted($lines)

_changed($orig, $final)

get_diff_content($diff)

Our function to get the diff

_perform_add($line)

_perform_delete($line)

_perform_context($line)

Details

in diff_renderer at line 59
public diff_renderer($params = array())

Constructor.

Parameters

$params

in diff_renderer at line 76
public array get_params()

Get any renderer parameters.

Return Value

array All parameters of this renderer object.

in diff_renderer at line 97
public string render(diff $diff)

Renders a diff.

Parameters

diff $diff A diff object.

Return Value

string The formatted output.

in diff_renderer at line 184
public _block($xbeg, $xlen, $ybeg, $ylen, $edits)

Parameters

$xbeg
$xlen
$ybeg
$ylen
$edits

at line 736
public _start_diff()

at line 747
public _end_diff()

at line 775
public _block_header($xbeg, $xlen, $ybeg, $ylen)

Parameters

$xbeg
$xlen
$ybeg
$ylen

in diff_renderer at line 248
public _start_block($header)

Parameters

$header

in diff_renderer at line 253
public _end_block()

in diff_renderer at line 258
public _lines($lines, $prefix = ' ')

Parameters

$lines
$prefix

at line 826
public _context($lines)

Parameters

$lines

at line 787
public _added($lines)

Parameters

$lines

at line 814
public _deleted($lines)

Parameters

$lines

at line 856
public _changed($orig, $final)

Parameters

$orig
$final

at line 602
public get_diff_content($diff)

Our function to get the diff

Parameters

$diff

at line 792
public _perform_add($line)

Parameters

$line

at line 819
public _perform_delete($line)

Parameters

$line

at line 831
public _perform_context($line)

Parameters

$line