@@ 447-449 (lines=3) @@ | ||
444 | //retrieve answers id for MCUA and MCMA questions |
|
445 | case 'SIMPLECHOICE': |
|
446 | $current_answer_id = $attributes['IDENTIFIER']; |
|
447 | if (!isset($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id])) { |
|
448 | $exercise_info['question'][$current_question_ident]['answer'][$current_answer_id] = array(); |
|
449 | } |
|
450 | break; |
|
451 | case 'MAPENTRY': |
|
452 | if ($parent_element == "MAPPING") { |
|
@@ 705-709 (lines=5) @@ | ||
702 | case 'RENDER_CHOICE'; |
|
703 | break; |
|
704 | case 'RESPONSE_LABEL': |
|
705 | if (!empty($attributes['IDENT'])) { |
|
706 | $current_answer_id = $attributes['IDENT']; |
|
707 | //set the placeholder for the answer to come (in endElementQti1) |
|
708 | $exercise_info['question'][$current_question_ident]['answer'][$current_answer_id] = ''; |
|
709 | } |
|
710 | break; |
|
711 | case 'DECVAR': |
|
712 | if ($parent_element == 'OUTCOMES' && $grand_parent_element == 'RESPROCESSING') { |