You are here

function cmfcClassesCoreStandAlone::prependObserver in Calendar Systems 7

Same name and namespace in other branches
  1. 8 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependObserver()
  2. 8.2 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependObserver()
  3. 6.3 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependObserver()
  4. 6 calendar/lib/classesCore.class.inc.php \cmfcClassesCoreStandAlone::prependObserver()
  5. 7.3 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);
}