PHP Класс Horde_Text_Filter_Emoticons, horde

By default, this filter does not do any transformation to the emoticon. Parameters:
entities - (boolean) Use HTML entity versions of the patterns?
           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.
Автор: Marko Djukic ([email protected])
Наследование: extends Horde_Text_Filter_Base
Показать файл Открыть проект

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

Свойство Тип Описание
$_emoticons * List complex strings before simpler ones, otherwise for example :(( would be matched against :( before :(( is found.
$_params array Filter parameters.

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

Метод Описание
emoticonReplace ( array $matches ) : string Returns the replacement emoticon text.
getIcon ( string $icon ) : string Return the replacement emoticon text.
getIcons ( string $icon = null ) : array | string Returns a hash with all emoticons and names or the name of a single emoticon.
getPatterns ( ) : array Returns a hash with replace patterns.

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

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

Returns the replacement emoticon text.
public emoticonReplace ( array $matches ) : string
$matches array Matches from preg_replace_callback().
Результат string The replacement text.

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

Return the replacement emoticon text.
public getIcon ( string $icon ) : string
$icon string The emoticon name.
Результат string The replacement text.

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

Returns a hash with all emoticons and names or the name of a single emoticon.
public getIcons ( string $icon = null ) : array | string
$icon string If set, return the name for that emoticon only.
Результат array | string Patterns hash or emoticon name.

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

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

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

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

* List complex strings before simpler ones, otherwise for example :(( would be matched against :( before :(( is found.
protected $_emoticons

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

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