Documentation

Horde_Text_Diff_Renderer_Inline extends Horde_Text_Diff_Renderer
in package

"Inline" diff renderer.

This class renders diffs in the Wiki-style "inline" 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.

Tags
author

Ciprian Popovici

Table of Contents

$_block_header  : string
Header for each change block.
$_del_prefix  : string
Prefix for deleted text.
$_del_suffix  : string
Suffix for deleted text.
$_ins_prefix  : string
Prefix for inserted text.
$_ins_suffix  : string
Suffix for inserted text.
$_leading_context_lines  : int
Number of leading context "lines" to preserve.
$_split_characters  : bool
Whether to split down to character-level.
$_split_level  : string
What are we currently splitting on? Used to recurse to show word-level or character-level changes.
$_trailing_context_lines  : int
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
_encode()  : mixed
_endBlock()  : mixed
_endDiff()  : mixed
_lines()  : mixed
_splitOnWords()  : mixed
_startBlock()  : mixed
_startDiff()  : mixed

Properties

$_block_header

Header for each change block.

protected string $_block_header = ''

$_del_prefix

Prefix for deleted text.

protected string $_del_prefix = '<del>'

$_del_suffix

Suffix for deleted text.

protected string $_del_suffix = '</del>'

$_ins_prefix

Prefix for inserted text.

protected string $_ins_prefix = '<ins>'

$_ins_suffix

Suffix for inserted text.

protected string $_ins_suffix = '</ins>'

$_leading_context_lines

Number of leading context "lines" to preserve.

protected int $_leading_context_lines = 10000

$_split_characters

Whether to split down to character-level.

protected bool $_split_characters = \false

$_split_level

What are we currently splitting on? Used to recurse to show word-level or character-level changes.

protected string $_split_level = 'lines'

$_trailing_context_lines

Number of trailing context "lines" to preserve.

protected int $_trailing_context_lines = 10000

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 $words = false ]) : mixed
Parameters
$lines : mixed
$words : mixed = false
Return values
mixed

_encode()

protected _encode(mixed &$string) : mixed
Parameters
$string : 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 $encode = true ]) : mixed
Parameters
$lines : mixed
$prefix : mixed = ' '
$encode : mixed = true
Return values
mixed

_splitOnWords()

protected _splitOnWords(mixed $string[, mixed $newlineEscape = " " ]) : mixed
Parameters
$string : mixed
$newlineEscape : 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