PHP Класс 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.
Автор: Tyler Colbert ([email protected])
Автор: Jan Schneider ([email protected])
Наследование: extends Horde_Text_Filter_Base
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
$_params array Filter parameters.

Открытые методы

Метод Описание
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.

Защищенные методы

Метод Описание
_regexCallback ( array $matches ) : string Regular expression callback.

Описание методов

_regexCallback() защищенный Метод

Regular expression callback.
protected _regexCallback ( array $matches ) : string
$matches array preg_replace_callback() matches. See regex above for description of matching data.
Результат string Replacement string.

decode() публичный статический Метод

"Decodes" the text formerly encoded by using the "encode" parameter.
public static decode ( string $text ) : string
$text string An encoded text.
Результат string The decoded text.

getPatterns() публичный Метод

Returns a hash with replace patterns.
public getPatterns ( ) : array
Результат array Patterns hash.

regexCallback() публичный Метод

Regular expression callback.
public regexCallback ( array $matches ) : string
$matches array preg_replace_callback() matches. See regex above for description of matching data.
Результат string Replacement string.

Описание свойств

$_params защищенное свойство

Filter parameters.
protected array $_params
Результат array