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: falseCopyright 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. Показать файл Открыть проект Примеры использования класса
Свойство | Тип | Описание | |
---|---|---|---|
$_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. |
protected _regexCallback ( array $matches ) : string | ||
$matches | array | preg_replace_callback() matches. See regex above for description of matching data. |
Результат | string | Replacement string. |
public getPatterns ( ) : array | ||
Результат | array | Patterns hash. |
public regexCallback ( array $matches ) : string | ||
$matches | array | preg_replace_callback() matches. See regex above for description of matching data. |
Результат | string | Replacement string. |