Example #1
0
 public function dispatchEvent(Bc_Event $event)
 {
     if (isset($this->_listeners[$event->getType()])) {
         $type = $event->getType();
         if (is_array($this->_listeners[$type])) {
             foreach ($this->_listeners[$type] as $listener) {
                 $listener->listen($event);
             }
         }
     }
 }
Example #2
0
 public function __construct($type, Bc_Form $form)
 {
     parent::__construct($type);
     $this->_form = $form;
 }