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); } } } }
public function __construct($type, Bc_Form $form) { parent::__construct($type); $this->_form = $form; }