Overview

Packages

  • Text
    • Filter

Classes

  • Horde_Text_Filter
  • Horde_Text_Filter_Base
  • Horde_Text_Filter_Bbcode
  • Horde_Text_Filter_Cleanascii
  • Horde_Text_Filter_Cleanhtml
  • Horde_Text_Filter_Dimsignature
  • Horde_Text_Filter_Emails
  • Horde_Text_Filter_Emoticons
  • Horde_Text_Filter_Environment
  • Horde_Text_Filter_Exception
  • Horde_Text_Filter_Highlightquotes
  • Horde_Text_Filter_Html2text
  • Horde_Text_Filter_JavascriptMinify
  • Horde_Text_Filter_JavascriptMinify_JsMin
  • Horde_Text_Filter_Linkurls
  • Horde_Text_Filter_Simplemarkup
  • Horde_Text_Filter_Space2html
  • Horde_Text_Filter_Tabs2spaces
  • Horde_Text_Filter_Text2html
  • Horde_Text_Filter_Translation
  • Horde_Text_Filter_Words
  • Horde_Text_Filter_Xss
  • Overview
  • Package
  • Class
  • Tree

Class Horde_Text_Filter_Emoticons

The Horde_Text_Filter_Emoticons:: class finds emoticon strings in a block of text and does a transformation on them.

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-2012 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.

Horde_Text_Filter_Base
Extended by Horde_Text_Filter_Emoticons
Package: Text\Filter
Category: Horde
License: LGPL 2.1
Author: Marko Djukic marko@oblo.com
Located at Horde/Text/Filter/Emoticons.php
Methods summary
public array
# getPatterns( )

Returns a hash with replace patterns.

Returns a hash with replace patterns.

Returns

array
Patterns hash.

Overrides

Horde_Text_Filter_Base::getPatterns()
public string
# emoticonReplace( array $matches )

Returns the replacement emoticon text.

Returns the replacement emoticon text.

Parameters

$matches
Matches from preg_replace_callback().

Returns

string
The replacement text.
public string
# getIcon( string $icon )

Return the replacement emoticon text.

Return the replacement emoticon text.

Parameters

$icon
The emoticon name.

Returns

string
The replacement text.
public array|string
# getIcons( string $icon = null )

Returns a hash with all emoticons and names or the name of a single emoticon.

Returns a hash with all emoticons and names or the name of a single emoticon.

Parameters

$icon
If set, return the name for that emoticon only.

Returns

array|string
Patterns hash or emoticon name.
Methods inherited from Horde_Text_Filter_Base
__construct(), postProcess(), preProcess()
API documentation generated by ApiGen