function cmfcClassesCoreStandAlone::notifyObservers in Calendar Systems 7
Same name and namespace in other branches
- 8 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::notifyObservers()
- 8.2 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::notifyObservers()
- 6.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::notifyObservers()
- 6 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::notifyObservers()
- 7.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::notifyObservers()
- 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,
));
}
}
}
}