Horde_Text_Diff_Renderer_Unified_Colored
extends Horde_Text_Diff_Renderer_Unified
in package
"Unified" diff renderer with output coloring.
Tags
Table of Contents
- $_cli : Horde_Cli
- CLI handler.
- $_leading_context_lines : mixed
- Number of leading context "lines" to preserve.
- $_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
$_cli
CLI handler.
protected
Horde_Cli
$_cli
Contrary to the name, it supports color highlighting for HTML too.
$_leading_context_lines
Number of leading context "lines" to preserve.
protected
mixed
$_leading_context_lines
= 0
This should be left at zero for this class, but subclasses may want to set this to other values.
$_trailing_context_lines
Number of trailing context "lines" to preserve.
protected
mixed
$_trailing_context_lines
= 0
This should be left at zero for this class, but subclasses may want to set this to other values.
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.
render()
Renders a diff.
public
render(Horde_Text_Diff $diff) : string
Parameters
- $diff : Horde_Text_Diff
-
A Horde_Text_Diff object.
Return values
string —The formatted output.
_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