You are here

function cmfcClassesCore::prependCommandHandler in Calendar Systems 5

File

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

Class

cmfcClassesCore
all cmf classes inherit from this class

Code

function prependCommandHandler($cmd, $commandHandler, $parameters = null) {
  if (empty($this->_commandHandlers[$cmd])) {
    $this->_commandHandlers[$cmd] = array();
  }
  array_unshift(&$this->_commandHandlers[$cmd], $commandHandler);
}