Documentation

Horde_Text_Diff_Renderer_Context extends Horde_Text_Diff_Renderer
in package

"Context" diff renderer.

This class renders the diff in classic "context diff" format.

Copyright 2004-2017 Horde LLC (http://www.horde.org/)

See the enclosed file LICENSE for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.

Table of Contents

$_leading_context_lines  : mixed
Number of leading context "lines" to preserve.
$_second_block  : mixed
$_trailing_context_lines  : mixed
Number of trailing context "lines" to preserve.
__construct()  : mixed
Constructor.
getParams()  : array<string|int, mixed>
Get any renderer parameters.
render()  : string
Renders a diff.
_added()  : mixed
_block()  : mixed
_blockHeader()  : mixed
_changed()  : mixed
_context()  : mixed
_deleted()  : mixed
_endBlock()  : mixed
_endDiff()  : mixed
_lines()  : mixed
_startBlock()  : mixed
_startDiff()  : mixed

Properties

$_leading_context_lines

Number of leading context "lines" to preserve.

protected mixed $_leading_context_lines = 4

$_second_block

protected mixed $_second_block = ''

$_trailing_context_lines

Number of trailing context "lines" to preserve.

protected mixed $_trailing_context_lines = 4

Methods

__construct()

Constructor.

public __construct([mixed $params = array() ]) : mixed
Parameters
$params : mixed = array()
Return values
mixed

getParams()

Get any renderer parameters.

public getParams() : array<string|int, mixed>
Return values
array<string|int, mixed>

All parameters of this renderer object.

_added()

protected _added(mixed $lines) : mixed
Parameters
$lines : mixed
Return values
mixed

_block()

protected _block(mixed $xbeg, mixed $xlen, mixed $ybeg, mixed $ylen, mixed &$edits) : mixed
Parameters
$xbeg : mixed
$xlen : mixed
$ybeg : mixed
$ylen : mixed
$edits : mixed
Return values
mixed

_blockHeader()

protected _blockHeader(mixed $xbeg, mixed $xlen, mixed $ybeg, mixed $ylen) : mixed
Parameters
$xbeg : mixed
$xlen : mixed
$ybeg : mixed
$ylen : mixed
Return values
mixed

_changed()

protected _changed(mixed $orig, mixed $final) : mixed
Parameters
$orig : mixed
$final : mixed
Return values
mixed

_context()

protected _context(mixed $lines) : mixed
Parameters
$lines : mixed
Return values
mixed

_deleted()

protected _deleted(mixed $lines) : mixed
Parameters
$lines : mixed
Return values
mixed

_endBlock()

protected _endBlock() : mixed
Return values
mixed

_endDiff()

protected _endDiff() : mixed
Return values
mixed

_lines()

protected _lines(mixed $lines[, mixed $prefix = ' ' ]) : mixed
Parameters
$lines : mixed
$prefix : mixed = ' '
Return values
mixed

_startBlock()

protected _startBlock(mixed $header) : mixed
Parameters
$header : mixed
Return values
mixed

_startDiff()

protected _startDiff() : mixed
Return values
mixed

Search results