Ejemplo n.º 1
0
 protected function _init()
 {
     if (!$this->_amazon) {
         $this->_amazon = new Kwf_Service_Amazon();
     }
     parent::_init();
 }
Ejemplo n.º 2
0
 protected function _init()
 {
     parent::_init();
     if (!$this->_table) {
         if (isset($this->_name)) {
             throw new Kwf_Exception("You must rename _name to _table in '" . get_class($this) . "'");
         }
         throw new Kwf_Exception("No table set");
     }
 }
Ejemplo n.º 3
0
 protected function _init()
 {
     parent::_init();
     if (!$this->_proxyModel) {
         throw new Kwf_Exception("proxyModel config is required for model '" . get_class($this) . "'");
     }
     if (!is_string($this->_proxyModel)) {
         $this->_initProxyModel();
     }
 }