connection = $connection; else $this->connection = lmbToolkit :: instance()->getDefaultDbConnection(); if(!is_null($file)) $this->_load($file); } function _load($file) { $type = $this->connection->getType(); $default_loader = 'lmbSQLDumpLoader'; $loader = 'lmb' . ucfirst($type) . 'DumpLoader'; if(file_exists(dirname(__FILE__) . '/dump/' . $loader . '.class.php')) require_once(dirname(__FILE__) . '/dump/' . $loader . '.class.php'); else $loader = $default_loader; $this->loader = new $loader($file); $this->loader->execute($this->connection); } function clean() { $this->loader->cleanTables($this->connection); } } ?>