@@ 549-555 (lines=7) @@ | ||
546 | } |
|
547 | ||
548 | switch ($current_element) { |
|
549 | case 'SIMPLECHOICE': |
|
550 | if (!isset ($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['value'])) { |
|
551 | $exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['value'] = trim($data); |
|
552 | } else { |
|
553 | $exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['value'] .= '' . trim($data); |
|
554 | } |
|
555 | break; |
|
556 | case 'FEEDBACKINLINE': |
|
557 | if (!isset ($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'])) { |
|
558 | $exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'] = trim($data); |
|
@@ 556-562 (lines=7) @@ | ||
553 | $exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['value'] .= '' . trim($data); |
|
554 | } |
|
555 | break; |
|
556 | case 'FEEDBACKINLINE': |
|
557 | if (!isset ($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'])) { |
|
558 | $exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'] = trim($data); |
|
559 | } else { |
|
560 | $exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'] .= ' ' . trim($data); |
|
561 | } |
|
562 | break; |
|
563 | case 'SIMPLEASSOCIABLECHOICE': |
|
564 | $exercise_info['question'][$current_question_ident]['answer'][$current_match_set][$currentAssociableChoice] = trim($data); |
|
565 | break; |