phpBB API Documentation
Class

diff_renderer_raw

class diff_renderer_raw extends diff_renderer

"raw" diff renderer.

This class could be used to output a raw unified patch file

Properties

$_leading_context_lines
$_trailing_context_lines

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

from diff_renderer
_end_diff()

from diff_renderer
_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

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

in diff_renderer at line 213
public _start_diff()

in diff_renderer at line 218
public _end_diff()

at line 545
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 559
public _context($lines)

Parameters

$lines

at line 564
public _added($lines)

Parameters

$lines

at line 569
public _deleted($lines)

Parameters

$lines

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

Parameters

$orig
$final

at line 540
public get_diff_content($diff)

Our function to get the diff

Parameters

$diff