You are here

function cmfcClassesCore::prependObserver in Calendar Systems 5

File

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

Class

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