Phergie
[ class tree: Phergie ] [ index: Phergie ] [ all elements ]

Class: Phergie_Ui_Abstract

Source Location: /Phergie/Ui/Abstract.php

Class Overview


Base class for end-user interfaces.


Author(s):

Methods


Child classes:

Phergie_Ui_Console
End-user interface that produces console output when running the bot from a shell.

Class Details

[line 31]
Base class for end-user interfaces.



Tags:

author:  Phergie Development Team <team@phergie.org>
link:  http://pear.phergie.org/package/Phergie
abstract:  
license:  New BSD License


[ Top ]


Class Methods


method onCommand [line 91]

void onCommand( Phergie_Event_Command $event, Phergie_Connection $connection)

Handler for when the bot sends a command to a server.



Tags:

access:  public


Overridden in child classes as:

Phergie_Ui_Console::onCommand()
Outputs a prompt when the bot sends a command to a server.

Parameters:

Phergie_Event_Command   $event   Event representing the command being sent
Phergie_Connection   $connection   Connection on which the command is being sent

[ Top ]

method onConnect [line 40]

void onConnect( string $host)

Handler for when a server connection is attempted.



Tags:

access:  public


Overridden in child classes as:

Phergie_Ui_Console::onConnect()
Outputs a prompt when a server connection is attempted.

Parameters:

string   $host   Server hostname

[ Top ]

method onEvent [line 76]

void onEvent( Phergie_Event_Abstract $event, Phergie_Connection $connection)

Handler for when the bot receives an IRC event.



Tags:

access:  public


Overridden in child classes as:

Phergie_Ui_Console::onEvent()
Outputs a prompt when the bot receives an IRC event.

Parameters:

Phergie_Event_Abstract   $event   Received event
Phergie_Connection   $connection   Connection on which the event was received

[ Top ]

method onPluginFailure [line 63]

void onPluginFailure( string $plugin, string $message)

Handler for when a plugin fails to load.



Tags:

access:  public


Overridden in child classes as:

Phergie_Ui_Console::onPluginFailure()
Outputs a prompt when a plugin fails to load.

Parameters:

string   $plugin   Short name of the plugin
string   $message   Message describing the reason for the failure

[ Top ]

method onPluginLoad [line 51]

void onPluginLoad( string $plugin)

Handler for when an attempt is made to load a plugin.



Tags:

access:  public


Overridden in child classes as:

Phergie_Ui_Console::onPluginLoad()
Outputs a prompt when a plugin is loaded successfully.

Parameters:

string   $plugin   Short name of the plugin

[ Top ]

method onQuit [line 103]

void onQuit( Phergie_Connection $connection)

Handler for when the bot terminates a connection to a server.



Tags:

access:  public


Overridden in child classes as:

Phergie_Ui_Console::onQuit()
Outputs a prompt when the bot terminates a connection to a server.

Parameters:

Phergie_Connection   $connection   Terminated connection

[ Top ]

method onShutdown [line 113]

void onShutdown( )

Handler for when the bot shuts down after terminating all server connections.



Tags:

access:  public


Overridden in child classes as:

Phergie_Ui_Console::onShutdown()
Outputs a prompt when the bot shuts down after terminating all server connections.

[ Top ]


Documentation generated on Mon, 27 Sep 2010 23:03:46 -0500 by phpDocumentor 1.4.3