|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
Interface for a class that can dispatch events to event handlers. More...
Inheritance diagram for Erebot\Interfaces\EventDispatcher:Public Member Functions | |
| addEventHandler (\Erebot\Interfaces\EventHandler $handler) | |
| addNumericHandler (\Erebot\Interfaces\NumericHandler $handler) | |
| dispatch (\Erebot\Interfaces\Event\Base\Generic $event) | |
| removeEventHandler (\Erebot\Interfaces\EventHandler $handler) | |
| removeNumericHandler (\Erebot\Interfaces\NumericHandler $handler) | |
Interface for a class that can dispatch events to event handlers.
Definition at line 28 of file EventDispatcher.php.
| Erebot\Interfaces\EventDispatcher::addEventHandler | ( | \Erebot\Interfaces\EventHandler | $handler | ) |
Registers an event handler on this connection.
| Erebot::Interfaces::EventHandler | $handler | The handler to register. |
| Erebot\Interfaces\EventDispatcher::addNumericHandler | ( | \Erebot\Interfaces\NumericHandler | $handler | ) |
Registers a numeric handler on this connection.
| Erebot::Interfaces::NumericHandler | $handler | The handler to register. |
| Erebot\Interfaces\EventDispatcher::dispatch | ( | \Erebot\Interfaces\Event\Base\Generic | $event | ) |
Dispatches the given event to handlers which have been registered for this type of event.
| Erebot::Interfaces::Event::Base::Generic | $event | An event to dispatch. |
Implemented in Erebot\IrcConnection.
| Erebot\Interfaces\EventDispatcher::removeEventHandler | ( | \Erebot\Interfaces\EventHandler | $handler | ) |
Unregisters an event handler on this connection.
| Erebot::Interfaces::EventHandler | $handler | The handler to unregister. |
| Erebot::NotFoundException | Thrown when the given handler could not be found, such as when it was not registered on this connection. |
| Erebot\Interfaces\EventDispatcher::removeNumericHandler | ( | \Erebot\Interfaces\NumericHandler | $handler | ) |
Unregisters a numeric handler on this connection.
| Erebot::Interfaces::NumericHandler | $handler | The handler to unregister. |
| Erebot::NotFoundException | Thrown when the given handler could not be found, such as when it was not registered on this connection. |