return null; } } // getNextDataSet // Do the splits and place in arrays // Note, these MUST be in the same order as getDBStructure $recTypeGroups = getNextDataSet($splittedData); $detailTypeGroups = getNextDataSet($splittedData); $ontologies = getNextDataSet($splittedData); $terms = getNextDataSet($splittedData); $recTypes = getNextDataSet($splittedData); $detailTypes = getNextDataSet($splittedData); $recStructure = getNextDataSet($splittedData); $relationshipConstraints = getNextDataSet($splittedData); $fileExtToMimetype = getNextDataSet($splittedData); $translations = getNextDataSet($splittedData); // we are not extracting defCalcFunctions, defCrosswalk, defLanguage, defURLPrefixes, users, groups and tags // add later if needed // insert the arrays into the corresonding tables (new db) or temp tables (existing) $query = "SET SESSION sql_mode='NO_AUTO_VALUE_ON_ZERO'"; mysql_query($query); processRecTypeGroups($recTypeGroups); processDetailTypeGroups($detailTypeGroups); processOntologies($ontologies); processTerms($terms); processRecTypes($recTypes); processDetailTypes($detailTypes); processRecStructure($recStructure); processRelationshipConstraints($relationshipConstraints); processFileExtToMimetype($fileExtToMimetype); processTranslations($translations);
} } // getNextDataSet // Do the splits and place in arrays // Note, these MUST be in the same order as getDBStructureAsSQL $recTypeGroups = getNextDataSet($splittedData); $detailTypeGroups = getNextDataSet($splittedData); $ontologies = getNextDataSet($splittedData); $terms = getNextDataSet($splittedData); $recTypes = getNextDataSet($splittedData); $detailTypes = getNextDataSet($splittedData); $recStructure = getNextDataSet($splittedData); $relationshipConstraints = getNextDataSet($splittedData); $fileExtToMimetype = getNextDataSet($splittedData); $translations = getNextDataSet($splittedData); $savedSearches = getNextDataSet($splittedData); // we are not extracting defCalcFunctions, defCrosswalk, defLanguage, defURLPrefixes, users, groups and tags // add later if needed // insert the arrays into the corresonding tables (new db) or temp tables (existing) $query = "SET SESSION sql_mode='NO_AUTO_VALUE_ON_ZERO'"; mysql_query($query); processRecTypeGroups($recTypeGroups); processDetailTypeGroups($detailTypeGroups); processOntologies($ontologies); processTerms($terms); processRecTypes($recTypes); processDetailTypes($detailTypes); processRecStructure($recStructure); processRelationshipConstraints($relationshipConstraints); processFileExtToMimetype($fileExtToMimetype); processTranslations($translations);