示例#1
0
 public function getEventSubscribers()
 {
     $ret = parent::getEventSubscribers();
     $ret[] = Kwf_Model_EventSubscriber::getInstance('Kwf_Model_Events_Basic_EventSubscriber', array('modelFactoryConfig' => $this->getFactoryConfig()));
     return $ret;
 }
示例#2
0
 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;
 }
示例#3
0
 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;
 }