public function importSql($path, $files = array('setup_structure.sql'))
    {
        $status = false;
        $fImport = null;
        if(file_exists($path)) {
            foreach($files as $file) {
                if(file_exists($path.$file)) {
                    $fImport = file_get_contents($path.$file);
                    $this->executeRawQuery($fImport);
                    $this->importTableName = array_merge($this->importTableName, $this->getSqlFileTables($path.$file));
                }
            }
        }

        return $status;
    }
public function importSql($path, $files = array('setup_structure.sql'))
    {
        $status = false;
        $fImport = null;
        if(file_exists($path)) {
            foreach($files as $file) {
                if(file_exists($path.$file)) {
                    $fImport = file_get_contents($path.$file);
                    $this->executeRawQuery($fImport);
                    $this->importTableName = array_merge($this->importTableName, $this->getSqlFileTables($path.$file));
                }
            }
        }

        return $status;
    }
public function importSql ( $ path , $ files = array ( 'setup_structure.sql' ) ) { $ status = false ; $ fImport = null ; if ( file_exists ( $ path ) ) { foreach ( $ files as $ file ) { if ( file_exists ( $ path . $ file ) ) { $ fImport = file_get_contents ( $ path . $ file ) ; $ this -> executeRawQuery ( $ fImport ) ; $ this -> importTableName = array_merge ( $ this -> importTableName , $ this -> getSqlFileTables ( $ path . $ file ) ) ; } } } return $ status ; }
Imports the specified file in the MySql server
@param String $path
@param array $files (optional)
@return boolean
Imports the specified file in the MySql server