|
@@ 517-523 (lines=7) @@
|
| 514 |
|
} |
| 515 |
|
|
| 516 |
|
switch ($current_element) { |
| 517 |
|
case 'SIMPLECHOICE': |
| 518 |
|
if (!isset ($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['value'])) { |
| 519 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['value'] = trim($data); |
| 520 |
|
} else { |
| 521 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['value'] .= '' . trim($data); |
| 522 |
|
} |
| 523 |
|
break; |
| 524 |
|
case 'FEEDBACKINLINE': |
| 525 |
|
if (!isset ($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'])) { |
| 526 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'] = trim($data); |
|
@@ 524-530 (lines=7) @@
|
| 521 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['value'] .= '' . trim($data); |
| 522 |
|
} |
| 523 |
|
break; |
| 524 |
|
case 'FEEDBACKINLINE': |
| 525 |
|
if (!isset ($exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'])) { |
| 526 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'] = trim($data); |
| 527 |
|
} else { |
| 528 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_answer_id]['feedback'] .= ' ' . trim($data); |
| 529 |
|
} |
| 530 |
|
break; |
| 531 |
|
case 'SIMPLEASSOCIABLECHOICE': |
| 532 |
|
$exercise_info['question'][$current_question_ident]['answer'][$current_match_set][$currentAssociableChoice] = trim($data); |
| 533 |
|
break; |