|
@@ 547-553 (lines=7) @@
|
| 544 |
|
} |
| 545 |
|
|
| 546 |
|
switch ($current_element) { |
| 547 |
|
case 'SIMPLECHOICE': |
| 548 |
|
if (!isset ($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['value'])) { |
| 549 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['value'] = trim($data); |
| 550 |
|
} else { |
| 551 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['value'] .= '' . trim($data); |
| 552 |
|
} |
| 553 |
|
break; |
| 554 |
|
case 'FEEDBACKINLINE': |
| 555 |
|
if (!isset ($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'])) { |
| 556 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'] = trim($data); |
|
@@ 554-560 (lines=7) @@
|
| 551 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['value'] .= '' . trim($data); |
| 552 |
|
} |
| 553 |
|
break; |
| 554 |
|
case 'FEEDBACKINLINE': |
| 555 |
|
if (!isset ($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'])) { |
| 556 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'] = trim($data); |
| 557 |
|
} else { |
| 558 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'] .= ' ' . trim($data); |
| 559 |
|
} |
| 560 |
|
break; |
| 561 |
|
case 'SIMPLEASSOCIABLECHOICE': |
| 562 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_match_set][$currentAssociableChoice] = trim($data); |
| 563 |
|
break; |