|
@@ 438-440 (lines=3) @@
|
| 435 |
|
//retrieve answers id for MCUA and MCMA questions |
| 436 |
|
case 'SIMPLECHOICE': |
| 437 |
|
$current_answer_id = $attributes['IDENTIFIER']; |
| 438 |
|
if (!isset($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id])) { |
| 439 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id] = array(); |
| 440 |
|
} |
| 441 |
|
break; |
| 442 |
|
case 'MAPENTRY': |
| 443 |
|
if ($parent_element == "MAPPING") { |
|
@@ 693-697 (lines=5) @@
|
| 690 |
|
case 'RENDER_CHOICE'; |
| 691 |
|
break; |
| 692 |
|
case 'RESPONSE_LABEL': |
| 693 |
|
if (!empty($attributes['IDENT'])) { |
| 694 |
|
$current_answer_id = $attributes['IDENT']; |
| 695 |
|
//set the placeholder for the answer to come (in endElementQti1) |
| 696 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id] = ''; |
| 697 |
|
} |
| 698 |
|
break; |
| 699 |
|
case 'DECVAR': |
| 700 |
|
if ($parent_element == 'OUTCOMES' && $grand_parent_element == 'RESPROCESSING') { |