PHP Class Texy\Modules\EmoticonModule

Inheritance: extends Texy\Module
显示文件 Open project: dg/texy

Public Properties

Property Type Description
$class CSS class for emoticons
$fileRoot physical location of images on server (default value is $texy->imageModule->fileRoot)
$icons supported emoticons and image files
$root root of relative images (default value is $texy->imageModule->root)

Public Methods

Method Description
__construct ( $texy )
beforeParse ( )
pattern ( Texy\LineParser $parser, array $matches ) : HtmlElement | string | FALSE Callback for: :-))).
solve ( HandlerInvocation $invocation, $emoticon, $raw ) : HtmlElement | FALSE Finish invocation.

Method Details

__construct() public method

public __construct ( $texy )

beforeParse() public method

public beforeParse ( )

pattern() public method

Callback for: :-))).
public pattern ( Texy\LineParser $parser, array $matches ) : HtmlElement | string | FALSE
$parser Texy\LineParser
$matches array
return Texy\HtmlElement | string | FALSE

solve() public method

Finish invocation.
public solve ( HandlerInvocation $invocation, $emoticon, $raw ) : HtmlElement | FALSE
$invocation Texy\HandlerInvocation
return Texy\HtmlElement | FALSE

Property Details

$class public_oe property

CSS class for emoticons
public $class

$fileRoot public_oe property

physical location of images on server (default value is $texy->imageModule->fileRoot)
public $fileRoot

$icons public_oe property

supported emoticons and image files
public $icons

$root public_oe property

root of relative images (default value is $texy->imageModule->root)
public $root