From 2377f8dcd4636a6bc299ef8551a893fab187f322 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Tue, 29 May 2007 15:19:12 +0000 Subject: [PATCH] MDL-9716 'answernumbering' field now supported --- question/format/xml/format.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/question/format/xml/format.php b/question/format/xml/format.php index 984d8056a107e..ccdfa201f570f 100755 --- a/question/format/xml/format.php +++ b/question/format/xml/format.php @@ -172,6 +172,7 @@ function import_multichoice( $question ) { $single = $this->getpath( $question, array('#','single',0,'#'), 'true' ); $qo->single = $this->trans_single( $single ); $shuffleanswers = $this->getpath( $question, array('#','shuffleanswers',0,'#'), 'false' ); + $qo->answernumbering = $this->getpath( $question, array('#','answernumbering',0,'#'), 'abc' ); $qo->shuffleanswers = $this->trans_single($shuffleanswers); $qo->correctfeedback = $this->getpath( $question, array('#','correctfeedback',0,'#','text',0,'#'), '', true ); $qo->partiallycorrectfeedback = $this->getpath( $question, array('#','partiallycorrectfeedback',0,'#','text',0,'#'), '', true ); @@ -872,6 +873,7 @@ function writequestion( $question ) { $expout .= " ".$this->writetext($question->options->correctfeedback, 3)."\n"; $expout .= " ".$this->writetext($question->options->partiallycorrectfeedback, 3)."\n"; $expout .= " ".$this->writetext($question->options->incorrectfeedback, 3)."\n"; + $expout .= " {$question->options->answernumbering}\n"; foreach($question->options->answers as $answer) { $percent = $answer->fraction * 100; $expout .= " \n";