PHP Класс Horde_Text_Diff_Renderer, horde

This class renders the diff in classic diff format. It is intended that this class be customized via inheritance, to obtain fancier outputs. Copyright 2004-2016 Horde LLC (http://www.horde.org/) See the enclosed file COPYING for license information (LGPL). If you did not receive this file, see http://www.horde.org/licenses/lgpl21.
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_leading_context_lines This should be left at zero for this class, but subclasses may want to set this to other values.
$_trailing_context_lines This should be left at zero for this class, but subclasses may want to set this to other values.

Открытые методы

Метод Описание
__construct ( $params = [] ) Constructor.
getParams ( ) : array Get any renderer parameters.
render ( Horde_Text_Diff $diff ) : string Renders a diff.

Защищенные методы

Метод Описание
_added ( $lines )
_block ( $xbeg, $xlen, $ybeg, $ylen, &$edits )
_blockHeader ( $xbeg, $xlen, $ybeg, $ylen )
_changed ( $orig, $final )
_context ( $lines )
_deleted ( $lines )
_endBlock ( )
_endDiff ( )
_lines ( $lines, $prefix = ' ' )
_startBlock ( $header )
_startDiff ( )

Описание методов

__construct() публичный Метод

Constructor.
public __construct ( $params = [] )

_added() защищенный Метод

protected _added ( $lines )

_block() защищенный Метод

protected _block ( $xbeg, $xlen, $ybeg, $ylen, &$edits )

_blockHeader() защищенный Метод

protected _blockHeader ( $xbeg, $xlen, $ybeg, $ylen )

_changed() защищенный Метод

protected _changed ( $orig, $final )

_context() защищенный Метод

protected _context ( $lines )

_deleted() защищенный Метод

protected _deleted ( $lines )

_endBlock() защищенный Метод

protected _endBlock ( )

_endDiff() защищенный Метод

protected _endDiff ( )

_lines() защищенный Метод

protected _lines ( $lines, $prefix = ' ' )

_startBlock() защищенный Метод

protected _startBlock ( $header )

_startDiff() защищенный Метод

protected _startDiff ( )

getParams() публичный Метод

Get any renderer parameters.
public getParams ( ) : array
Результат array All parameters of this renderer object.

render() публичный Метод

Renders a diff.
public render ( Horde_Text_Diff $diff ) : string
$diff Horde_Text_Diff A Horde_Text_Diff object.
Результат string The formatted output.

Описание свойств

$_leading_context_lines защищенное свойство

This should be left at zero for this class, but subclasses may want to set this to other values.
protected $_leading_context_lines

$_trailing_context_lines защищенное свойство

This should be left at zero for this class, but subclasses may want to set this to other values.
protected $_trailing_context_lines