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

A filter that groups several (sub-)filters together and only matches when all sub-filters match. More...

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

Public Member Functions

 match (\Erebot\Interfaces\Event\Base\Generic $event)
 
- Public Member Functions inherited from Erebot\Event\Match\CollectionAbstract
 __construct ()
 
add ($filter)
 
 count ()
 
 offsetExists ($offset)
 
 offsetGet ($offset)
 
 offsetSet ($offset, $value)
 
 offsetUnset ($offset)
 
remove ($filter)
 

Additional Inherited Members

- Protected Attributes inherited from Erebot\Event\Match\CollectionAbstract
 $submatchers
 Subfilters of this filter.
 

Detailed Description

A filter that groups several (sub-)filters together and only matches when all sub-filters match.

Definition at line 28 of file All.php.

Member Function Documentation

Erebot\Event\Match\All::match ( \Erebot\Interfaces\Event\Base\Generic  $event)

Decides whether the given event passes the filter or not.

Parameters
$eventAn event to try to match to the criterion expressed by this filter.
Return values
booltrue if the event matches the criterion, false otherwise.

Implements Erebot\Interfaces\Event\Match.

Definition at line 30 of file All.php.


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