Merge branch 'MDL-39164' of git://github.com/jmvedrine/moodle

This commit is contained in:
Sam Hemelryk 2013-04-19 14:54:41 +12:00
commit 91d72d3105
4 changed files with 5 additions and 0 deletions

View file

@ -150,6 +150,7 @@ class qformat_blackboard_six_pool extends qformat_blackboard_six_base {
$answer = $this->getpath($thisquestion, $answer = $this->getpath($thisquestion,
array('#', 'ANSWER', 0, '#', 'TEXT', 0, '#'), '', true); array('#', 'ANSWER', 0, '#', 'TEXT', 0, '#'), '', true);
$question->graderinfo = $this->cleaned_text_field($answer); $question->graderinfo = $this->cleaned_text_field($answer);
$question->responsetemplate = $this->text_field('');
$question->feedback = ''; $question->feedback = '';
$question->responseformat = 'editor'; $question->responseformat = 'editor';
$question->responsefieldlines = 15; $question->responsefieldlines = 15;

View file

@ -781,6 +781,7 @@ class qformat_blackboard_six_qti extends qformat_blackboard_six_base {
$question->responseformat = 'editor'; $question->responseformat = 'editor';
$question->responsefieldlines = 15; $question->responsefieldlines = 15;
$question->attachments = 0; $question->attachments = 0;
$question->responsetemplate = $this->text_field('');
$questions[]=$question; $questions[]=$question;
} }

View file

@ -292,6 +292,7 @@ class qformat_examview extends qformat_based_on_xml {
protected function parse_es($qrec, $question) { protected function parse_es($qrec, $question) {
$feedback = trim($this->unxmlise($qrec['answer'][0]['#'])); $feedback = trim($this->unxmlise($qrec['answer'][0]['#']));
$question->graderinfo = $this->text_field($feedback); $question->graderinfo = $this->text_field($feedback);
$question->responsetemplate = $this->text_field('');
$question->feedback = $feedback; $question->feedback = $feedback;
$question->responseformat = 'editor'; $question->responseformat = 'editor';
$question->responsefieldlines = 15; $question->responsefieldlines = 15;

View file

@ -332,6 +332,8 @@ class qformat_gift extends qformat_default {
$question->attachments = 0; $question->attachments = 0;
$question->graderinfo = array( $question->graderinfo = array(
'text' => '', 'format' => FORMAT_HTML, 'files' => array()); 'text' => '', 'format' => FORMAT_HTML, 'files' => array());
$question->responsetemplate = array(
'text' => '', 'format' => FORMAT_HTML);
return $question; return $question;
case 'multichoice': case 'multichoice':