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
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_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