static function clearAll() { if (AK_LOG_EVENTS) { $Logger = Ak::getLogger(); $Logger->message('Clearing all database settings from cache'); } AkFileSystem::rmdir_tree(AkDbSchemaCache::getCacheDir()); }
public function tearDown() { AkFileSystem::file_delete($this->_base_config_path . DS . 'testing' . DS . 'testconfig1.php', array('base_path' => $this->_base_config_path)); AkFileSystem::file_delete($this->_base_config_path . DS . 'development' . DS . 'testconfig1.php', array('base_path' => $this->_base_config_path)); AkFileSystem::file_delete($this->_base_config_path . DS . 'production' . DS . 'testconfig1.php', array('base_path' => $this->_base_config_path)); AkFileSystem::rmdir_tree($this->_base_config_path . DS . 'testing'); AkFileSystem::rmdir_tree($this->_base_config_path . DS . 'development'); AkFileSystem::rmdir_tree($this->_base_config_path . DS . 'production'); AkFileSystem::file_delete(AkConfig::getDir('config') . DS . 'testconfig1.yml', array('base_path' => $this->_base_config_path)); AkFileSystem::rmdir_tree($this->_base_config_path); AkFileSystem::rmdir_tree(AkConfig::getDir('tmp') . DS . 'ak_config'); }
static function cleanupTmpDir() { if (strstr(AK_BASE_DIR, AK_TMP_DIR)) { return; } clearstatcache(); $files = glob(AK_TMP_DIR . DS . '*'); $files = array_diff($files, array('')); foreach ($files as $file) { if (!is_dir($file)) { if ($file != '.gitignore') { unlink($file); } } else { AkFileSystem::rmdir_tree($file); } } $framework_testing_tmp = AK_FRAMEWORK_DIR . DS . 'app_layout' . DS . 'tmp' . DS . 'testing' . DS . 'web'; if (is_dir($framework_testing_tmp)) { AkFileSystem::directory_delete($framework_testing_tmp); } }
/** * @deprecated * @uses AkFileSystem::rmdir_tree */ static function rmdir_tree($directory) { Ak::deprecateMethod(__METHOD__, 'AkFileSystem::rmdir_tree()'); return AkFileSystem::rmdir_tree($directory); }