function cmfcClassesCoreStandAlone::runCommand in Calendar Systems 8.2
Same name and namespace in other branches
- 8 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::runCommand()
- 6.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::runCommand()
- 6 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::runCommand()
- 7.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::runCommand()
- 7 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::runCommand()
- 7.2 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::runCommand()
* @example * <code> * $this->runCommand('sendEmailAfterActivation',$columnsValues); * </code>
File
- calendar/
lib/ classesCore.class.inc.php, line 374
Class
- cmfcClassesCoreStandAlone
- all cmf classes inherit from this class
Code
function runCommand($cmd, &$params = null) {
if ($this->_commandingEnabled == true) {
if (is_array($this->_commandHandlers[$cmd])) {
foreach ($this->_commandHandlers[$cmd] as $commandHandler) {
$result = call_user_func_array($commandHandler, array(
&$this,
$cmd,
$params,
));
if (!cmfcExceptionStandAlone::isError($result)) {
return $result;
}
}
}
}
}