PHP Class Horde_Text_Filter_Emails, horde

Parameters:
class - (string) CSS class of the generated  tag.
        DEFAULT: ''
encode - (boolean) Whether to escape special HTML characters in the URLs
         and finally "encode" the complete tag so that it can be decoded
         later with the decode() method. This is useful if you want to run
         htmlspecialchars() or similar *after* using this filter.
         DEFAULT: false
Copyright 2003-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: Tyler Colbert ([email protected])
Author: Jan Schneider ([email protected])
Inheritance: extends Horde_Text_Filter_Base
Datei anzeigen Open project: horde/horde Class Usage Examples

Protected Properties

Property Type Description
$_params array Filter parameters.

Public Methods

Method Description
decode ( string $text ) : string "Decodes" the text formerly encoded by using the "encode" parameter.
getPatterns ( ) : array Returns a hash with replace patterns.
regexCallback ( array $matches ) : string Regular expression callback.

Protected Methods

Method Description
_regexCallback ( array $matches ) : string Regular expression callback.

Method Details

_regexCallback() protected method

Regular expression callback.
protected _regexCallback ( array $matches ) : string
$matches array preg_replace_callback() matches. See regex above for description of matching data.
return string Replacement string.

decode() public static method

"Decodes" the text formerly encoded by using the "encode" parameter.
public static decode ( string $text ) : string
$text string An encoded text.
return string The decoded text.

getPatterns() public method

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

regexCallback() public method

Regular expression callback.
public regexCallback ( array $matches ) : string
$matches array preg_replace_callback() matches. See regex above for description of matching data.
return string Replacement string.

Property Details

$_params protected_oe property

Filter parameters.
protected array $_params
return array