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