You are here

function cmfcClassesCoreStandAlone::addCommandHandler in Calendar Systems 8

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

* @example * <code> * $object->addCommandHandler('commandName','functionName') * $object->addCommandHandler('commandName',array(&$myObject,'methodName')) * </code>

File

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

Class

cmfcClassesCoreStandAlone
all cmf classes inherit from this class

Code

function addCommandHandler($cmd, $commandHandler, $parameters = null) {
  $this->_commandHandlers[$cmd][] = $commandHandler;
}