You are here

function cmfcClassesCoreStandAlone::addObserver in Calendar Systems 7

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

Register the reference to an object object

Parameters

$observer array|string //like call_user_func first param:

Return value

void

File

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

Class

cmfcClassesCoreStandAlone
all cmf classes inherit from this class

Code

function addObserver($event, $observer, $parameters = null) {
  $this->_observers[$event][] = $observer;
}