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

An abstract Event which applies to a channel and has a source and a target. More...

+ Inheritance diagram for Erebot\Event\WithChanSourceTargetAbstract:

Public Member Functions

 __construct (\Erebot\Interfaces\Connection $connection, $chan, $source, $target)
 
 getChan ()
 
- Public Member Functions inherited from Erebot\Event\WithSourceTargetAbstract
 __construct (\Erebot\Interfaces\Connection $connection, $source, $target)
 
 getSource ()
 
 getTarget ()
 
- Public Member Functions inherited from Erebot\Event\AbstractEvent
 __construct (\Erebot\Interfaces\Connection $connection)
 
 getConnection ()
 
 preventDefault ($prevent=null)
 

Protected Attributes

 $chan
 IRC channel this event relates to.
 
- Protected Attributes inherited from Erebot\Event\WithSourceTargetAbstract
 $source
 Source the event originated from.
 
 $target
 Target of the event (usually the bot).
 
- 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 Event which applies to a channel and has a source and a target.

Definition at line 28 of file WithChanSourceTargetAbstract.php.

Constructor & Destructor Documentation

Erebot\Event\WithChanSourceTargetAbstract::__construct ( \Erebot\Interfaces\Connection  $connection,
  $chan,
  $source,
  $target 
)

Creates a new event for which a source, a destination (target) and a channel can be identified.

Parameters
Erebot::Interfaces::Connection$connectionThe connection this event came from.
string$chanIRC channel this event applies to.
string$sourceSource identified for this event.
string$targetTarget identified for this event.

Definition at line 51 of file WithChanSourceTargetAbstract.php.

References Erebot\Event\WithChanSourceTargetAbstract\$chan, Erebot\Event\WithSourceTargetAbstract\$source, and Erebot\Event\WithSourceTargetAbstract\$target.

Member Function Documentation

Erebot\Event\WithChanSourceTargetAbstract::getChan ( )

Returns the name of the channel this event relates to.

Return values
stringName of the channel affected by the event.

Implements Erebot\Interfaces\Event\Base\Chan.

Definition at line 61 of file WithChanSourceTargetAbstract.php.

References Erebot\Event\WithChanSourceTargetAbstract\$chan.


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