]> git.mjollnir.org Git - moodle.git/commitdiff
These are no longer needed because the backup functions are part of the questiontype...
authorgustav_delius <gustav_delius>
Fri, 24 Mar 2006 20:44:13 +0000 (20:44 +0000)
committergustav_delius <gustav_delius>
Fri, 24 Mar 2006 20:44:13 +0000 (20:44 +0000)
question/type/multichoice/backuplib.php [deleted file]
question/type/shortanswer/backuplib.php [deleted file]

diff --git a/question/type/multichoice/backuplib.php b/question/type/multichoice/backuplib.php
deleted file mode 100644 (file)
index b6c65c9..0000000
+++ /dev/null
@@ -1,28 +0,0 @@
-<?php
-    function multichoice_backup($bf,$preferences,$question,$level=6,$include_answers=true) {
-
-        global $CFG;
-
-        $status = true;
-
-        $multichoices = get_records("question_multichoice","question",$question,"id");
-        //If there are multichoices
-        if ($multichoices) {
-            //Iterate over each multichoice
-            foreach ($multichoices as $multichoice) {
-                $status = fwrite ($bf,start_tag("MULTICHOICE",$level,true));
-                //Print multichoice contents
-                fwrite ($bf,full_tag("LAYOUT",$level+1,false,$multichoice->layout));
-                fwrite ($bf,full_tag("ANSWERS",$level+1,false,$multichoice->answers));
-                fwrite ($bf,full_tag("SINGLE",$level+1,false,$multichoice->single));
-                fwrite ($bf,full_tag("SHUFFLEANSWERS",$level+1,false,$randomsamatch->shuffleanswers));
-                $status = fwrite ($bf,end_tag("MULTICHOICE",$level,true));
-            }
-            //Now print question_answers
-            if ($include_answers) {
-                $status = question_backup_answers($bf,$preferences,$question);
-            }
-        }
-        return $status;
-    }
-?>
diff --git a/question/type/shortanswer/backuplib.php b/question/type/shortanswer/backuplib.php
deleted file mode 100644 (file)
index bb6d4fd..0000000
+++ /dev/null
@@ -1,26 +0,0 @@
-<?php
-    function shortanswer_backup($bf,$preferences,$question,$level=6,$include_answers=true) {
-
-        global $CFG;
-
-        $status = true;
-
-        $shortanswers = get_records("question_shortanswer","question",$question,"id");
-        //If there are shortanswers
-        if ($shortanswers) {
-            //Iterate over each shortanswer
-            foreach ($shortanswers as $shortanswer) {
-                $status = fwrite ($bf,start_tag("SHORTANSWER",$level,true));
-                //Print shortanswer contents
-                fwrite ($bf,full_tag("ANSWERS",$level+1,false,$shortanswer->answers));
-                fwrite ($bf,full_tag("USECASE",$level+1,false,$shortanswer->usecase));
-                $status = fwrite ($bf,end_tag("SHORTANSWER",$level,true));
-            }
-            //Now print question_answers
-            if ($include_answers) {
-                $status = question_backup_answers($bf,$preferences,$question);
-            }
-        }
-        return $status;
-    }
-?>