|
@@ 454-456 (lines=3) @@
|
| 451 |
|
case 'MAPENTRY': |
| 452 |
|
if ($parent_element == "MAPPING") { |
| 453 |
|
$answer_id = $attributes['MAPKEY']; |
| 454 |
|
if (!isset ($exercise_info['question'][$current_question_ident]['weighting'])) { |
| 455 |
|
$exercise_info['question'][$current_question_ident]['weighting'] = array(); |
| 456 |
|
} |
| 457 |
|
$exercise_info['question'][$current_question_ident]['weighting'][$answer_id] = $attributes['MAPPEDVALUE']; |
| 458 |
|
} |
| 459 |
|
break; |
|
@@ 595-597 (lines=3) @@
|
| 592 |
|
$current_question_item_body |
| 593 |
|
); |
| 594 |
|
} else { |
| 595 |
|
if (!isset ($exercise_info['question'][$current_question_ident]['wrong_answers'])) { |
| 596 |
|
$exercise_info['question'][$current_question_ident]['wrong_answers'] = array(); |
| 597 |
|
} |
| 598 |
|
$exercise_info['question'][$current_question_ident]['wrong_answers'][] = $data; |
| 599 |
|
} |
| 600 |
|
break; |