PHP Класс Horde_Text_Filter, horde

Автор: Chuck Hagenbuch ([email protected])
Автор: Jan Schneider ([email protected])
Показать файл Открыть проект Примеры использования класса

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

Метод Описание
factory ( string $driver, array $params = [] ) : Horde_Text_Filter_Base Attempts to return a concrete instance based on $driver.
filter ( string $text, mixed $filters = [], mixed $params = [] ) : string Applies a set of patterns to a block of text.

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

factory() публичный статический Метод

Attempts to return a concrete instance based on $driver.
Устаревший:
public static factory ( string $driver, array $params = [] ) : Horde_Text_Filter_Base
$driver string Either a driver name, or the full class name to use (class must extend Horde_Text_Filter_Base).
$params array A hash containing any additional configuration parameters a subclass might need.
Результат Horde_Text_Filter_Base The newly created concrete instance.

filter() публичный статический Метод

Applies a set of patterns to a block of text.
public static filter ( string $text, mixed $filters = [], mixed $params = [] ) : string
$text string The text to filter.
$filters mixed The list of filters (or a single filter).
$params mixed The list of params to use with each filter.
Результат string The transformed text.