PHP Класс Horde_Text_Filter_Base, horde

Copyright 1999-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.
Автор: Chuck Hagenbuch ([email protected])
Автор: Jan Schneider ([email protected])
Автор: Michael Slusarz ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$_params array Filter parameters.

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

Метод Описание
__construct ( array $params = [] ) Constructor.
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.

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

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

Constructor.
public __construct ( array $params = [] )
$params array Any parameters that the filter instance needs.

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