Class MOXMAN_CommandCollection
Inheritance | MOXMAN_CommandCollection |
---|
Handles instances of MOXMAN_ICommand. This lets you execute handlers by name.
Public Methods
Method | Description | Defined By |
---|---|---|
__construct() | Constructs a new command collection. | MOXMAN_CommandCollection |
addClasses() | Adds commands to class names. | MOXMAN_CommandCollection |
execute() | Executes the specified command by name.' | MOXMAN_CommandCollection |
Method Details
Constructs a new command collection.
public void __construct ( ) |
Adds commands to class names.
public void addClasses ( $map ) | ||
$map | array | Name/value array with command name to class name map. |
Executes the specified command by name.'
public Mixed execute ( $name, $params ) | ||
$name | string | Name of the command to execute. |
$params | Object | Object with parameters to command. |
return | Mixed | Object or null if the command wasn't found. |
---|