function cmfcClassesCoreStandAlone::prependObserver in Calendar Systems 7.2
Same name and namespace in other branches
- 8 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependObserver()
- 8.2 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependObserver()
- 6.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependObserver()
- 6 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependObserver()
- 7.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependObserver()
- 7 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependObserver()
File
- calendar/
lib/ classesCore.class.inc.php, line 359
Class
- cmfcClassesCoreStandAlone
- all cmf classes inherit from this class
Code
function prependObserver($event, $observer, $parameters = null) {
if (empty($this->_observers[$event])) {
$this->_observers[$event] = array();
}
array_unshift($this->_observers[$event], $observer);
}