MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs

This commit is contained in:
skodak
2008-05-15 21:40:00 +00:00
parent 469dcbcc8b
commit f33e1ed4ae
112 changed files with 8225 additions and 6596 deletions
+4 -4
View File
@@ -733,9 +733,9 @@ function send_file($path, $filename, $lifetime=86400 , $filter=0, $pathisstring=
}
function get_records_csv($file, $table) {
global $CFG, $db;
global $CFG, $DB;
if (!$metacolumns = $db->MetaColumns($CFG->prefix . $table)) {
if (!$metacolumns = $DB->get_columns($table)) {
return false;
}
@@ -773,14 +773,14 @@ function get_records_csv($file, $table) {
}
function put_records_csv($file, $records, $table = NULL) {
global $CFG, $db;
global $CFG, $DB;
if (empty($records)) {
return true;
}
$metacolumns = NULL;
if ($table !== NULL && !$metacolumns = $db->MetaColumns($CFG->prefix . $table)) {
if ($table !== NULL && !$metacolumns = $DB->get_columns($table)) {
return false;
}