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