PHP 클래스 Horde_Text_Filter_Highlightquotes, horde

CSS class names called "quoted1" ... "quoted{$cssLevels}" must be present. The text to be passed in must have already been passed through htmlspecialchars(). Parameters:
'citeblock'  -- Display cite blocks?
                DEFAULT: true
'cssLevels'  -- Number of defined CSS class names.
                DEFAULT: 5
'hideBlocks' -- Hide large quoted text blocks by default?
                DEFAULT: false
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.
저자: Michael Slusarz ([email protected])
저자: Jan Schneider ([email protected])
상속: extends Horde_Text_Filter_Base
파일 보기 프로젝트 열기: horde/horde 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$_params array Filter parameters.
$_qlimit integer The number of quoted lines to exceed to trigger large block processing.

공개 메소드들

메소드 설명
getPatterns ( ) : array Returns a hash with replace patterns.
postProcess ( string $text ) : string Executes any code necessaray after applying the filter patterns.
preProcess ( string $text ) : string Executes any code necessaray before applying the filter patterns.

보호된 메소드들

메소드 설명
_beginLargeBlock ( array $lines, integer $qcount ) : string Add HTML code at the beginning of a large block of quoted lines.
_endLargeBlock ( array $lines, integer $qcount ) : string Add HTML code at the end of a large block of quoted lines.
_process ( array $lines, integer $qcount ) : string Process a batch of lines at the same quoted level.
_removeBr ( array $lines ) : array Remove leading and trailing BR tags.

메소드 상세

_beginLargeBlock() 보호된 메소드

Add HTML code at the beginning of a large block of quoted lines.
protected _beginLargeBlock ( array $lines, integer $qcount ) : string
$lines array Lines.
$qcount integer Number of lines in quoted level.
리턴 string HTML code.

_endLargeBlock() 보호된 메소드

Add HTML code at the end of a large block of quoted lines.
protected _endLargeBlock ( array $lines, integer $qcount ) : string
$lines array Lines.
$qcount integer Number of lines in quoted level.
리턴 string HTML code.

_process() 보호된 메소드

Process a batch of lines at the same quoted level.
protected _process ( array $lines, integer $qcount ) : string
$lines array Lines.
$qcount integer Number of lines in quoted level.
리턴 string The rendered lines.

_removeBr() 보호된 메소드

Remove leading and trailing BR tags.
protected _removeBr ( array $lines ) : array
$lines array An array of text.
리턴 array The array with bare BR tags removed at the beginning and end.

getPatterns() 공개 메소드

Returns a hash with replace patterns.
public getPatterns ( ) : array
리턴 array Patterns hash.

postProcess() 공개 메소드

Executes any code necessaray after applying the filter patterns.
public postProcess ( string $text ) : string
$text string The text after the filtering.
리턴 string The modified text.

preProcess() 공개 메소드

Executes any code necessaray before applying the filter patterns.
public preProcess ( string $text ) : string
$text string The text before the filtering.
리턴 string The modified text.

프로퍼티 상세

$_params 보호되어 있는 프로퍼티

Filter parameters.
protected array $_params
리턴 array

$_qlimit 보호되어 있는 프로퍼티

The number of quoted lines to exceed to trigger large block processing.
protected int $_qlimit
리턴 integer