/** * Returns the set adapter * * @return IfwPsn_Vendor_Zend_Db_Adapter */ public function getAdapter() { /** * Check for an adapter being defined. if not, fetch the default adapter. */ if ($this->_adapter === null) { $this->_adapter = IfwPsn_Vendor_Zend_Db_Table_Abstract::getDefaultAdapter(); if (null === $this->_adapter) { require_once IFW_PSN_LIB_ROOT . 'IfwPsn/Vendor/Zend/Validate/Exception.php'; throw new IfwPsn_Vendor_Zend_Validate_Exception('No database adapter present'); } } return $this->_adapter; }
/** * Calls other protected methods for individual setup tasks and requirement checks * * @return void */ protected function _setup() { parent::_setup(); $this->_setupPrimaryAssignment(); $this->setLifetime($this->_lifetime); $this->_checkRequiredColumns(); }