protected function _init() { if (!$this->_amazon) { $this->_amazon = new Kwf_Service_Amazon(); } parent::_init(); }
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"); } }
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(); } }