MDL-15635 dtl refactoring and basic export and transfer ui (the import UI will be part of install process soon) - based largely on code by Andrei Bautu - thanks!

This commit is contained in:
skodak
2008-09-02 21:20:45 +00:00
parent 8aff848213
commit 3b49f849d8
17 changed files with 246 additions and 63 deletions
+1 -2
View File
@@ -29,8 +29,7 @@ class string_xml_database_importer extends xml_database_importer {
public function import_database() {
$parser = $this->get_parser();
if (!xml_parse($parser, $this->data, true)) {
//TODO localize
throw new import_exception("XML data not well-formed.");
throw new dbtransfer_exception('malformedxmlexception');
}
xml_parser_free($parser);
}