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.
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_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