public function getListeners() { $ret = parent::getListeners(); $ret[] = array('class' => get_class($this->_getGenerator()->getModel()), 'event' => 'Kwf_Events_Event_Row_Updated', 'callback' => 'onOwnRowUpdate'); $ret[] = array('class' => get_class($this->_getGenerator()->getModel()), 'event' => 'Kwf_Events_Event_Row_Inserted', 'callback' => 'onOwnRowUpdate'); return $ret; }
protected function _fireComponentEvent($eventType, Kwf_Component_Event_Component_AbstractFlag $ev) { parent::_fireComponentEvent($eventType, $ev); $cls = 'Kwf_Component_Event_Page_' . $eventType; $g = $this->_getGenerator(); foreach ($ev->component->getChildComponents(array('generator' => $g->getGeneratorKey())) as $c) { $this->fireEvent(new $cls($c->componentClass, $c, $ev->flag)); } }