Erebot  latest
A modular IRC bot for PHP 5.3+
Erebot\Event\Match\TextWildcard Class Reference

A filter that matches the content of an event based on some wildcard pattern. More...

+ Inheritance diagram for Erebot\Event\Match\TextWildcard:

Protected Member Functions

 realMatch ($prefix, $text)
 
- Protected Member Functions inherited from Erebot\Event\Match\TextAbstract
 realMatch ($prefix, $text)
 

Additional Inherited Members

- Public Member Functions inherited from Erebot\Event\Match\TextAbstract
 __construct ($pattern, $requirePrefix=false)
 
 getPattern ()
 
 getPrefixRequirement ()
 
 match (\Erebot\Interfaces\Event\Base\Generic $event)
 
 setPattern ($pattern)
 
 setPrefixRequirement ($requirePrefix=false)
 
- Protected Attributes inherited from Erebot\Event\Match\TextAbstract
 $pattern
 Pattern used in comparisons, as a string.
 
 $requirePrefix
 Boolean or null indicating whether a prefix is required or not.
 

Detailed Description

A filter that matches the content of an event based on some wildcard pattern.

Note
Valid wildcard characters are "?" (any character), "*" (any string, even an empty one), "&" (any word).
For the purpose of this filter, a "word" is a sequence of characters that starts at the beginning of the string or is preceded with a space (U+0020) and stops at the first space (U+0020) or at the end of the string (whichever comes first).

Definition at line 39 of file TextWildcard.php.


The documentation for this class was generated from the following file: