@@ 443-445 (lines=3) @@ | ||
440 | //retrieve answers id for MCUA and MCMA questions |
|
441 | case 'SIMPLECHOICE': |
|
442 | $current_answer_id = $attributes['IDENTIFIER']; |
|
443 | if (!isset($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id])) { |
|
444 | $exercise_info['question'][$current_question_ident]['answer'][$current_answer_id] = array(); |
|
445 | } |
|
446 | break; |
|
447 | case 'MAPENTRY': |
|
448 | if ($parent_element == "MAPPING") { |
|
@@ 698-702 (lines=5) @@ | ||
695 | case 'RENDER_CHOICE'; |
|
696 | break; |
|
697 | case 'RESPONSE_LABEL': |
|
698 | if (!empty($attributes['IDENT'])) { |
|
699 | $current_answer_id = $attributes['IDENT']; |
|
700 | //set the placeholder for the answer to come (in endElementQti1) |
|
701 | $exercise_info['question'][$current_question_ident]['answer'][$current_answer_id] = ''; |
|
702 | } |
|
703 | break; |
|
704 | case 'DECVAR': |
|
705 | if ($parent_element == 'OUTCOMES' && $grand_parent_element == 'RESPROCESSING') { |