@@ 445-447 (lines=3) @@ | ||
442 | case 'MAPENTRY': |
|
443 | if ($parent_element == "MAPPING") { |
|
444 | $answer_id = $attributes['MAPKEY']; |
|
445 | if (!isset ($exercise_info['question'][$current_question_ident]['weighting'])) { |
|
446 | $exercise_info['question'][$current_question_ident]['weighting'] = array(); |
|
447 | } |
|
448 | $exercise_info['question'][$current_question_ident]['weighting'][$answer_id] = $attributes['MAPPEDVALUE']; |
|
449 | } |
|
450 | break; |
|
@@ 578-580 (lines=3) @@ | ||
575 | $current_question_item_body |
|
576 | ); |
|
577 | } else { |
|
578 | if (!isset ($exercise_info['question'][$current_question_ident]['wrong_answers'])) { |
|
579 | $exercise_info['question'][$current_question_ident]['wrong_answers'] = array(); |
|
580 | } |
|
581 | $exercise_info['question'][$current_question_ident]['wrong_answers'][] = $data; |
|
582 | } |
|
583 | break; |