PHP Class Phergie_Plugin_Command, phergie

Inheritance: extends Phergie_Plugin_Abstract
Show file Open project: phergie/phergie

Protected Properties

Property Type Description
$methods array Cache for command lookups used to confirm that methods exist and parameter counts match

Public Methods

Method Description
getMethods ( ) : array Returns a list of detected methods for processing commands.
onLoad ( ) : void Load the Message plugin
onPrivmsg ( ) : void Parses a given message and, if its format corresponds to that of a defined command, calls the handler method for that command with any provided parameters.
populateMethodCache ( ) : void Populates the methods cache.

Method Details

getMethods() public method

Returns a list of detected methods for processing commands.
public getMethods ( ) : array
return array List of method names

onLoad() public method

Load the Message plugin
public onLoad ( ) : void
return void

onPrivmsg() public method

Parses a given message and, if its format corresponds to that of a defined command, calls the handler method for that command with any provided parameters.
public onPrivmsg ( ) : void
return void

populateMethodCache() public method

Populates the methods cache.
public populateMethodCache ( ) : void
return void

Property Details

$methods protected property

Cache for command lookups used to confirm that methods exist and parameter counts match
protected array $methods
return array