From: thepurpleblob Date: Tue, 29 Jun 2004 09:26:51 +0000 (+0000) Subject: Export classes added, not yet complete however X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a2db69caf7b4668f91078f714cc43ddffda0b90b;p=moodle.git Export classes added, not yet complete however --- diff --git a/mod/quiz/format/gift/format.php b/mod/quiz/format/gift/format.php index cd39a62e97..14bd175a67 100755 --- a/mod/quiz/format/gift/format.php +++ b/mod/quiz/format/gift/format.php @@ -476,6 +476,19 @@ function writequestion( $question ) { } $expout .= "}\n"; break; + case SHORTANSWER: + $expout .= $question->questiontext."{\n"; + foreach($question->answers as $answer) { + $weight = 100 * $answer->fraction; + $expout .= "\t=%".$weight."%".$answer->answer."#".$answer->feedback."\n"; + } + $expout .= "}\n"; + break; + case NUMERICAL: + $expout .= $question->questiontext."{\n"; + $expout .= "\t#".$question->min."..".$question->max."#".$question->answer->feedback."\n"; + $expout .= "}\n"; + break; default: error( "No handler for qtype $question->qtype for GIFT export" ); }