]> git.mjollnir.org Git - moodle.git/commitdiff
Included support to DESCRIPTION qtype.
authorstronk7 <stronk7>
Sun, 6 Jul 2003 09:21:56 +0000 (09:21 +0000)
committerstronk7 <stronk7>
Sun, 6 Jul 2003 09:21:56 +0000 (09:21 +0000)
Mainly, do nothing, but it's supported now :-)

backup/mod/quiz/backuplib.php
backup/mod/quiz/restorelib.php

index d697e35dfa1c06013cb4df8972756b1b1b654ede..824ee00076c3234f08538cda92e02a3e0517b17e 100644 (file)
                     $status = quiz_backup_match($bf,$preferences,$question->id);
                 } else if ($question->qtype == "6") {
                     $status = quiz_backup_randomsamatch($bf,$preferences,$question->id);
+                } else if ($question->qtype == "7") {
+                    //Description question. Nothing to write.
                 }
                 //End question
                 $status =fwrite ($bf,end_tag("QUESTION",5,true));
index 7579a1d1f046f3a69487e088b9f89b88bc7ff0a7..f1fd51baa80c720da3156dd0c331da6e53179f81 100644 (file)
                     $status = quiz_restore_match($oldid,$newid,$que_info,$restore);
                 } else if ($question->qtype == "6") {
                     $status = quiz_restore_randomsamatch($oldid,$newid,$que_info,$restore);
+                } else if ($question->qtype == "7") {
+                    //Description question. Nothing to do.
                 }
             } else {
                 $status = false;
                         }
                         $response->answer = $answer_field;
                         break;
+                    case 7:    //DESCRIPTION QTYPE
+                        //Nothing to do (there is no awser to this qtype)
+                        //But this case must exist !!
+                        break;
                     default:   //UNMATCHED QTYPE.
                         //This is an error (unimplemented qtype)
                         $status = false;