|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
An abstract CTCP Event which applies to a channel and contains some text. More...
Inheritance diagram for Erebot\Event\WithChanSourceCtcpAbstract:Public Member Functions | |
| __construct (\Erebot\Interfaces\Connection $connection, $chan, $source, $ctcpType, $text) | |
| getCtcpType () | |
Public Member Functions inherited from Erebot\Event\WithChanSourceTextAbstract | |
| __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 | |
| $ctcpType | |
| The type of CTCP message represented by this event. | |
Protected Attributes inherited from Erebot\Event\WithChanSourceTextAbstract | |
| $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 CTCP Event which applies to a channel and contains some text.
Definition at line 28 of file WithChanSourceCtcpAbstract.php.
| Erebot\Event\WithChanSourceCtcpAbstract::__construct | ( | \Erebot\Interfaces\Connection | $connection, |
| $chan, | |||
| $source, | |||
| $ctcpType, | |||
| $text | |||
| ) |
Creates a new event dealing with a CTCP message addressed to an IRC channel.
| 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 | $ctcpType | Type of CTCP message being represented. |
| string | $text | Text contained in this event. |
Definition at line 53 of file WithChanSourceCtcpAbstract.php.
References Erebot\Event\WithChanSourceAbstract\$chan, Erebot\Event\WithChanSourceCtcpAbstract\$ctcpType, Erebot\Event\WithChanSourceAbstract\$source, and Erebot\Event\WithChanSourceTextAbstract\$text.
| Erebot\Event\WithChanSourceCtcpAbstract::getCtcpType | ( | ) |
Returns the type of CTCP message conveyed by this event.
| string | Type of this CTCP message. |
Implements Erebot\Interfaces\Event\Base\Ctcp.
Definition at line 64 of file WithChanSourceCtcpAbstract.php.
References Erebot\Event\WithChanSourceCtcpAbstract\$ctcpType.