|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
An abstract Event for WATCH list notifications. More...
Inheritance diagram for Erebot\Event\NotificationAbstract:Public Member Functions | |
| __construct (\Erebot\Interfaces\Connection $connection, $source, $ident, $host,\DateTime $timestamp, $text) | |
| getTimestamp () | |
Public Member Functions inherited from Erebot\Event\WithSourceTextAbstract | |
| __construct (\Erebot\Interfaces\Connection $connection, $source, $text) | |
| getSource () | |
Public Member Functions inherited from Erebot\Event\WithTextAbstract | |
| __construct (\Erebot\Interfaces\Connection $connection, $text) | |
| getText () | |
Public Member Functions inherited from Erebot\Event\AbstractEvent | |
| __construct (\Erebot\Interfaces\Connection $connection) | |
| getConnection () | |
| preventDefault ($prevent=null) | |
Protected Attributes | |
| $timestamp | |
| Timestamp the notification was issued at. | |
Protected Attributes inherited from Erebot\Event\WithSourceTextAbstract | |
| $source | |
| Source the event originated from. | |
Protected Attributes inherited from Erebot\Event\WithTextAbstract | |
| $text | |
| Content of this event. | |
Protected Attributes inherited from Erebot\Event\AbstractEvent | |
| $connection | |
| Connection the event originated from. | |
| $halt | |
| Whether the default action should be prevented or not. More... | |
An abstract Event for WATCH list notifications.
Definition at line 27 of file NotificationAbstract.php.
| Erebot\Event\NotificationAbstract::__construct | ( | \Erebot\Interfaces\Connection | $connection, |
| $source, | |||
| $ident, | |||
| $host, | |||
| \DateTime | $timestamp, | ||
| $text | |||
| ) |
Constructs a new event related to a notification.
| Erebot::Interfaces::Connection | $connection | Connection the event originated from. |
| string | $source | Nickname of the IRC user this notification is about. |
| string | $ident | Identity of the IRC user this notification is about. |
| string | $host | Hostname of the IRC user this notification is about. |
| DateTime | $timestamp | Object that keeps track of when the notification was issued. |
| string | $text | Message explaining why the notification was triggered. |
Definition at line 54 of file NotificationAbstract.php.
References Erebot\Event\WithSourceTextAbstract\$source, Erebot\Event\WithTextAbstract\$text, and Erebot\Event\NotificationAbstract\$timestamp.
| Erebot\Event\NotificationAbstract::getTimestamp | ( | ) |
Returns the timestamp at which the notification was issued.
| DateTime | Timestamp of the notification. |
Definition at line 76 of file NotificationAbstract.php.
References Erebot\Event\NotificationAbstract\$timestamp.