Class MOXMAN_CommandCollection

InheritanceMOXMAN_CommandCollection

Handles instances of MOXMAN_ICommand. This lets you execute handlers by name.

Public Methods

Hide inherited methods

MethodDescriptionDefined 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

__construct() public method

Constructs a new command collection.

public void __construct ( )
addClasses() public method

Adds commands to class names.

public void addClasses ( $map )
$map array

Name/value array with command name to class name map.

execute() public method

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.