PHP Class Phergie_Ui_Abstract, phergie

Author: Phergie Development Team ([email protected])
Afficher le fichier Open project: phergie/phergie Class Usage Examples

Méthodes publiques

Méthode Description
onCommand ( Phergie_Event_Command $event, Phergie_Connection $connection ) : void Handler for when the bot sends a command to a server.
onConnect ( string $host ) : void Handler for when a server connection is attempted.
onEvent ( Phergie_Event_Abstract $event, Phergie_Connection $connection ) : void Handler for when the bot receives an IRC event.
onPluginFailure ( string $plugin, string $message ) : void Handler for when a plugin fails to load.
onPluginLoad ( string $plugin ) : void Handler for when an attempt is made to load a plugin.
onQuit ( Phergie_Connection $connection ) : void Handler for when the bot terminates a connection to a server.
onShutdown ( ) : void Handler for when the bot shuts down after terminating all server connections.

Method Details

onCommand() public méthode

Handler for when the bot sends a command to a server.
public onCommand ( Phergie_Event_Command $event, Phergie_Connection $connection ) : void
$event Phergie_Event_Command Event representing the command being sent
$connection Phergie_Connection Connection on which the command is being sent
Résultat void

onConnect() public méthode

Handler for when a server connection is attempted.
public onConnect ( string $host ) : void
$host string Server hostname
Résultat void

onEvent() public méthode

Handler for when the bot receives an IRC event.
public onEvent ( Phergie_Event_Abstract $event, Phergie_Connection $connection ) : void
$event Phergie_Event_Abstract Received event
$connection Phergie_Connection Connection on which the event was received
Résultat void

onPluginFailure() public méthode

Handler for when a plugin fails to load.
public onPluginFailure ( string $plugin, string $message ) : void
$plugin string Short name of the plugin
$message string Message describing the reason for the failure
Résultat void

onPluginLoad() public méthode

Handler for when an attempt is made to load a plugin.
public onPluginLoad ( string $plugin ) : void
$plugin string Short name of the plugin
Résultat void

onQuit() public méthode

Handler for when the bot terminates a connection to a server.
public onQuit ( Phergie_Connection $connection ) : void
$connection Phergie_Connection Terminated connection
Résultat void

onShutdown() public méthode

Handler for when the bot shuts down after terminating all server connections.
public onShutdown ( ) : void
Résultat void