Beispiel #1
0
 /**
  * Retrieve singleton instance of Axis_Event_Observer
  *
  * @return Axis_Event_Observer
  */
 public static function getInstance()
 {
     if (null === self::$_instance) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Beispiel #2
0
 /**
  * Dispatch event
  *
  * Calls all of the methods linked to dispatched event
  *
  * @static
  * @param string $name
  * @param array $data [optional]
  * @return Axis_Event_Observer
  */
 public static function dispatch($name, $data = array())
 {
     return Axis_Event_Observer::getInstance()->dispatch($name, $data);
 }