If metadata cannot be loaded from cache, adapter's describeTable() method is called to discover metadata
information. Returns true if and only if the metadata are loaded from cache.
protected _setupMetadata ( ) : boolean | ||
Результат | boolean |
protected function _setupMetadata() { //hier drinnen damits nur gemacht wird sobald di erste Table erstellt wird if (!self::getDefaultMetadataCache()) { $frontendOptions = array('automatic_serialization' => true, 'write_control' => false); if (extension_loaded('apc') && PHP_SAPI != 'cli') { $backendOptions = array(); $backend = 'Apc'; } else { $backendOptions = array('cache_dir' => 'cache/model', 'file_name_prefix' => 'dbtable'); $backend = 'File'; } $cache = Kwf_Cache::factory('Core', $backend, $frontendOptions, $backendOptions); self::setDefaultMetadataCache($cache); } parent::_setupMetadata(); }