You are here

function cmfcClassesCoreStandAlone::prependCommandHandler in Calendar Systems 8

Same name and namespace in other branches
  1. 8.2 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependCommandHandler()
  2. 6.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependCommandHandler()
  3. 6 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependCommandHandler()
  4. 7.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependCommandHandler()
  5. 7 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependCommandHandler()
  6. 7.2 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependCommandHandler()

File

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

Class

cmfcClassesCoreStandAlone
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);
}