|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
An abstract Event. More...
Inheritance diagram for Erebot\Event\AbstractEvent:Public Member Functions | |
| __construct (\Erebot\Interfaces\Connection $connection) | |
| getConnection () | |
| preventDefault ($prevent=null) | |
Protected Attributes | |
| $connection | |
| Connection the event originated from. | |
| $halt | |
| Whether the default action should be prevented or not. More... | |
An abstract Event.
Definition at line 27 of file AbstractEvent.php.
| Erebot\Event\AbstractEvent::__construct | ( | \Erebot\Interfaces\Connection | $connection | ) |
Constructs a new event.
| Erebot::Interfaces::Connection | $connection | Connection the event originated from. This can be used later on by event handlers to interact with the connection. |
Definition at line 60 of file AbstractEvent.php.
References Erebot\Event\AbstractEvent\$connection.
| Erebot\Event\AbstractEvent::getConnection | ( | ) |
Returns the connection this event came from. This is the same object as that passed during construction.
| Erebot::Interfaces::Connection | The connection this event came from. |
Implements Erebot\Interfaces\Event\Base\Generic.
Definition at line 66 of file AbstractEvent.php.
References Erebot\Event\AbstractEvent\$connection.
| Erebot\Event\AbstractEvent::preventDefault | ( | $prevent = null | ) |
Prevents the default action associated with this type of event from occuring.
| mixed | $prevent | (optional) Whether the default action should be prevented (true) or not (false). You may also pass the value null to retrieve the current value without modifying it. |
| bool | Previous value (if modified by this call), or current value (if the value null was passed to $prevent). |
Implements Erebot\Interfaces\Event\Base\Generic.
Definition at line 71 of file AbstractEvent.php.
References Erebot\Event\AbstractEvent\$halt.
|
protected |
Whether the default action should be prevented or not.
Definition at line 47 of file AbstractEvent.php.
Referenced by Erebot\Event\AbstractEvent\preventDefault().