PHP Class Phergie_Plugin_Command, phergie

Inheritance: extends Phergie_Plugin_Abstract
Afficher le fichier Open project: phergie/phergie

Protected Properties

Свойство Type Description
$methods array Cache for command lookups used to confirm that methods exist and parameter counts match

Méthodes publiques

Méthode 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 méthode

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

onLoad() public méthode

Load the Message plugin
public onLoad ( ) : void
Résultat void

onPrivmsg() public méthode

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
Résultat void

populateMethodCache() public méthode

Populates the methods cache.
public populateMethodCache ( ) : void
Résultat void

Property Details

$methods protected_oe property

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