Esempio n. 1
0
 /**
  *
  * @return Bc_Event_Dispatcher
  */
 public static function getInstance()
 {
     if (self::$_instance == null) {
         self::$_instance = new self();
     }
     return self::$_instance;
 }
Esempio n. 2
0
 public function getEventDispatcher()
 {
     if ($this->_eventDispatcher == null) {
         $this->_eventDispatcher = Bc_Event_Dispatcher::getInstance();
     }
     return $this->_eventDispatcher;
 }
Esempio n. 3
0
 public function dispatch()
 {
     return Bc_Event_Dispatcher::getInstance()->dispatchEvent($this);
 }