|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
An abstract Event containing some text, having a source and applying to a channel. More...
Inheritance diagram for Erebot\Event\WithChanSourceTextAbstract:Public Member Functions | |
| __construct (\Erebot\Interfaces\Connection $connection, $chan, $source, $text) | |
| getText () | |
Public Member Functions inherited from Erebot\Event\WithChanSourceAbstract | |
| __construct (\Erebot\Interfaces\Connection $connection, $chan, $source) | |
| getChan () | |
| getSource () | |
Public Member Functions inherited from Erebot\Event\AbstractEvent | |
| __construct (\Erebot\Interfaces\Connection $connection) | |
| getConnection () | |
| preventDefault ($prevent=null) | |
Protected Attributes | |
| $text | |
| Content of this event. | |
Protected Attributes inherited from Erebot\Event\WithChanSourceAbstract | |
| $chan | |
| IRC channel this event relates to. | |
| $source | |
| Source the event originated from. | |
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 containing some text, having a source and applying to a channel.
Definition at line 28 of file WithChanSourceTextAbstract.php.
| Erebot\Event\WithChanSourceTextAbstract::__construct | ( | \Erebot\Interfaces\Connection | $connection, |
| $chan, | |||
| $source, | |||
| $text | |||
| ) |
Creates a new event containing some text and for which a source and a channel can be identified.
| Erebot::Interfaces::Connection | $connection | The connection this event came from. |
| string | $chan | IRC channel this event applies to. |
| string | $source | Source identified for this event. |
| string | $text | Text contained in this event. |
Definition at line 51 of file WithChanSourceTextAbstract.php.
References Erebot\Event\WithChanSourceAbstract\$chan, Erebot\Event\WithChanSourceAbstract\$source, and Erebot\Event\WithChanSourceTextAbstract\$text.
| Erebot\Event\WithChanSourceTextAbstract::getText | ( | ) |
Returns the raw content of the current message. No attempt is made at parsing the content.
| string | The content of this message. |
Implements Erebot\Interfaces\Event\Base\Text.
Definition at line 61 of file WithChanSourceTextAbstract.php.
References Erebot\Event\WithChanSourceTextAbstract\$text.