You are here

function cmfcClassesCore::runCommand in Calendar Systems 5

* @example * <code> * $this->runCommand('sendEmailAfterActivation',$columnsValues); * </code>

File

calendar/lib/classesCore.class.inc.php, line 288

Class

cmfcClassesCore
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 (!PEAR::isError($result)) {
          return $result;
        }
      }
    }
  }
}