public function getEventSubscribers() { $ret = parent::getEventSubscribers(); $ret[] = Kwf_Model_EventSubscriber::getInstance('Kwf_Model_Events_Basic_EventSubscriber', array('modelFactoryConfig' => $this->getFactoryConfig())); return $ret; }
public function getEventSubscribers() { $ret = array(); foreach ($this->_models as $m) { $ret = array_merge($ret, $m->getEventSubscribers()); } $ret[] = Kwf_Model_EventSubscriber::getInstance('Kwf_Model_Union_Events', array('modelFactoryConfig' => $this->getFactoryConfig())); return $ret; }
public function getEventSubscribers() { $ret = $this->getProxyModel()->getEventSubscribers(); $fc = $this->getFactoryConfig(); if (!$fc) { throw new Kwf_Exception("Didn't find factoryConfig for '" . get_class($this) . "'"); } $ret[] = Kwf_Model_EventSubscriber::getInstance('Kwf_Model_Proxy_Events', array('modelFactoryConfig' => $fc)); return $ret; }