You are here

function cmfcClassesCoreStandAlone::notifyObservers in Calendar Systems 6

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

Calls the update() function using the reference to each registered observer - used by children of Observable

Return value

void

File

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

Class

cmfcClassesCoreStandAlone
all cmf classes inherit from this class

Code

function notifyObservers($event, $params = null) {
  if ($this->_observeringEnabled == true) {
    if (is_array($this->_observers[$event])) {
      foreach ($this->_observers[$event] as $observer) {
        call_user_func_array($observer, array(
          &$this,
          $params,
        ));
      }
    }
  }
}