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