function cmfcClassesCore::notifyObservers in Calendar Systems 5
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 254
Class
- cmfcClassesCore
- 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,
));
}
}
}
}