PHP 클래스 Phergie_Ui_Abstract, phergie

저자: Phergie Development Team ([email protected])
파일 보기 프로젝트 열기: phergie/phergie 1 사용 예제들

공개 메소드들

메소드 설명
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.

메소드 상세

onCommand() 공개 메소드

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
리턴 void

onConnect() 공개 메소드

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

onEvent() 공개 메소드

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
리턴 void

onPluginFailure() 공개 메소드

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
리턴 void

onPluginLoad() 공개 메소드

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

onQuit() 공개 메소드

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

onShutdown() 공개 메소드

Handler for when the bot shuts down after terminating all server connections.
public onShutdown ( ) : void
리턴 void