You are here

function cmfcClassesCoreStandAlone::prependObserver in Calendar Systems 8

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

File

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

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);
}