|
@@ 450-452 (lines=3) @@
|
| 447 |
|
case 'MAPENTRY': |
| 448 |
|
if ($parent_element == "MAPPING") { |
| 449 |
|
$answer_id = $attributes['MAPKEY']; |
| 450 |
|
if (!isset ($exercise_info['question'][$current_question_ident]['weighting'])) { |
| 451 |
|
$exercise_info['question'][$current_question_ident]['weighting'] = array(); |
| 452 |
|
} |
| 453 |
|
$exercise_info['question'][$current_question_ident]['weighting'][$answer_id] = $attributes['MAPPEDVALUE']; |
| 454 |
|
} |
| 455 |
|
break; |
|
@@ 583-585 (lines=3) @@
|
| 580 |
|
$current_question_item_body |
| 581 |
|
); |
| 582 |
|
} else { |
| 583 |
|
if (!isset ($exercise_info['question'][$current_question_ident]['wrong_answers'])) { |
| 584 |
|
$exercise_info['question'][$current_question_ident]['wrong_answers'] = array(); |
| 585 |
|
} |
| 586 |
|
$exercise_info['question'][$current_question_ident]['wrong_answers'][] = $data; |
| 587 |
|
} |
| 588 |
|
break; |