@@ 452-454 (lines=3) @@ | ||
449 | case 'MAPENTRY': |
|
450 | if ($parent_element == "MAPPING") { |
|
451 | $answer_id = $attributes['MAPKEY']; |
|
452 | if (!isset ($exercise_info['question'][$current_question_ident]['weighting'])) { |
|
453 | $exercise_info['question'][$current_question_ident]['weighting'] = array(); |
|
454 | } |
|
455 | $exercise_info['question'][$current_question_ident]['weighting'][$answer_id] = $attributes['MAPPEDVALUE']; |
|
456 | } |
|
457 | break; |
|
@@ 589-591 (lines=3) @@ | ||
586 | $current_question_item_body |
|
587 | ); |
|
588 | } else { |
|
589 | if (!isset ($exercise_info['question'][$current_question_ident]['wrong_answers'])) { |
|
590 | $exercise_info['question'][$current_question_ident]['wrong_answers'] = array(); |
|
591 | } |
|
592 | $exercise_info['question'][$current_question_ident]['wrong_answers'][] = $data; |
|
593 | } |
|
594 | break; |