PHP Class 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.
Author: Chuck Hagenbuch ([email protected])
Author: Jan Schneider ([email protected])
Author: Michael Slusarz ([email protected])
Datei anzeigen Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_params array Filter parameters.

Public Methods

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

Method Details

__construct() public method

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

getPatterns() public method

Returns a hash with replace patterns.
public getPatterns ( ) : array
return array Patterns hash.

postProcess() public method

Executes any code necessaray after applying the filter patterns.
public postProcess ( string $text ) : string
$text string The text after the filtering.
return string The modified text.

preProcess() public method

Executes any code necessaray before applying the filter patterns.
public preProcess ( string $text ) : string
$text string The text before the filtering.
return string The modified text.

Property Details

$_params protected_oe property

Filter parameters.
protected array $_params
return array