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
Afficher le fichier Open project: horde/horde Class Usage Examples

Protected Properties

Свойство Type Description
$_params array Filter parameters.

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
_regexCallback ( array $matches ) : string Regular expression callback.

Method Details

_regexCallback() protected méthode

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

decode() public static méthode

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

getPatterns() public méthode

Returns a hash with replace patterns.
public getPatterns ( ) : array
Résultat array Patterns hash.

regexCallback() public méthode

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

Property Details

$_params protected_oe property

Filter parameters.
protected array $_params
Résultat array