|
Erebot
latest
A modular IRC bot for PHP 5.3+
|
Interface for IRC(S) connections. More...
Inheritance diagram for Erebot\Interfaces\IrcConnection:Interface for IRC(S) connections.
This interface provides the necessary methods to handle an IRC(S) connection.
Definition at line 30 of file IrcConnection.php.
| Erebot\Interfaces\IrcConnection::getEventsProducer | ( | ) |
Returns the object used to produce events.
| Erebot::Interfaces::IrcParser | Object used to produce events. |
Implemented in Erebot\IrcConnection.
| Erebot\Interfaces\IrcConnection::getNumericProfile | ( | ) |
Returns the numeric profile associated with this connection.
| Erebot::NumericProfile::Base | The numeric profile associated with this connection. |
Implemented in Erebot\IrcConnection.
| Erebot\Interfaces\IrcConnection::isChannel | ( | $chan | ) |
Determines if the given string is a valid channel name or not. A channel name usually starts with the hash symbol (#). Valid characters for the rest of the name vary between IRC networks.
| $chan | Tentative channel name. |
| bool | true if $chan is a valid channel name, false otherwise. |
| Erebot::InvalidValueException::$chan | is not a string or is empty. |
Implemented in Erebot\IrcConnection.
| Erebot\Interfaces\IrcConnection::setNumericProfile | ( | \Erebot\NumericProfile\Base | $profile | ) |
Sets the new numeric profile for this connection.
| Erebot::NumericProfile::Base | $profile | The new numeric profile to use for this connection. |
Implemented in Erebot\IrcConnection.