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