PHP Class Horde_Text_Filter, horde

Author: Chuck Hagenbuch ([email protected])
Author: Jan Schneider ([email protected])
Datei anzeigen Open project: horde/horde Class Usage Examples

Public Methods

Method Description
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.

Method Details

factory() public static method

Attempts to return a concrete instance based on $driver.
Deprecation:
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.
return Horde_Text_Filter_Base The newly created concrete instance.

filter() public static method

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.
return string The transformed text.