PHP Класс Horde_Core_Factory_TextFilter, horde
Copyright 2010-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.
Показать файл
Открыть проект
Открытые методы
Метод |
Описание |
|
create ( string $driver, array $params = [] ) : Horde_Text_Filter_Base |
Return the Horde_Text_Filter_Base:: instance. |
|
filter ( string $text, mixed $filters = [], mixed $params = [] ) : string |
Applies a set of patterns to a block of text. |
|
Защищенные методы
Метод |
Описание |
|
_getDriver ( string $driver, array $params ) : array |
Gets the driver/params for a given base Horde_Text_Filter driver. |
|
Описание методов
_getDriver()
защищенный Метод
Gets the driver/params for a given base Horde_Text_Filter driver.
protected _getDriver ( string $driver, array $params ) : array |
$driver |
string |
Either a driver name, or the full class name to
use. |
$params |
array |
A hash containing any additional configuration
parameters a subclass might need. |
Результат |
array |
Driver as the first value, params list as the second. |
Return the Horde_Text_Filter_Base:: instance.
public create ( string $driver, array $params = [] ) : Horde_Text_Filter_Base |
$driver |
string |
Either a driver name, or the full class name to
use. |
$params |
array |
A hash containing any additional configuration
parameters a subclass might need. |
Результат |
Horde_Text_Filter_Base |
The singleton instance. |
Applies a set of patterns to a block of text.
public 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. |