/** * @access private */ function _persistTableColumnSettings() { AkDbSchemaCache::set($this->getModelName().'_column_settings', $this->_columnsSettings); }
/** * caching the meta info * * @return unknown */ function availableTables($force_lookup = false) { $available_tables = array(); !AK_TEST_MODE && $available_tables = Ak::getStaticVar('available_tables'); if(!$force_lookup && empty($available_tables)){ if (($available_tables = AkDbSchemaCache::get('avaliable_tables')) === false) { if(empty($available_tables)){ $available_tables = $this->connection->MetaTables(); } AkDbSchemaCache::set('avaliable_tables', $available_tables); !AK_TEST_MODE && Ak::setStaticVar('available_tables', $available_tables); } } $available_tables = $force_lookup ? $this->connection->MetaTables() : $available_tables; $force_lookup && !AK_TEST_MODE && Ak::setStaticVar('available_tables', $available_tables); return $available_tables; }
/** * Gets information from the database engine about a single table */ private function _databaseTableInternals($table) { if (!($cache = AkDbSchemaCache::get('table_internals_for_' . $table))) { $cache = $this->_db->getColumnDetails($table); AkDbSchemaCache::set('table_internals_for_' . $table, $cache); } return $cache; }