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
파일 보기 프로젝트 열기: horde/horde

보호된 프로퍼티들

프로퍼티 타입 설명
$_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