Erebot  latest
A modular IRC bot for PHP 5.3+
Erebot\Event\WithChanSourceCtcpAbstract Class Reference

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...
 

Detailed Description

An abstract CTCP Event which applies to a channel and contains some text.

Definition at line 28 of file WithChanSourceCtcpAbstract.php.

Constructor & Destructor Documentation

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.

Parameters
Erebot::Interfaces::Connection$connectionThe connection this event came from.
string$chanIRC channel this event applies to.
string$sourceSource identified for this event.
string$ctcpTypeType of CTCP message being represented.
string$textText 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.

Member Function Documentation

Erebot\Event\WithChanSourceCtcpAbstract::getCtcpType ( )

Returns the type of CTCP message conveyed by this event.

Return values
stringType of this CTCP message.

Implements Erebot\Interfaces\Event\Base\Ctcp.

Definition at line 64 of file WithChanSourceCtcpAbstract.php.

References Erebot\Event\WithChanSourceCtcpAbstract\$ctcpType.


The documentation for this class was generated from the following file: