|
@@ 271-275 (lines=5) @@
|
| 268 |
|
$exercise_info['question'][$question_index]['correct_answers'][] = $correct_answer_index + 1; |
| 269 |
|
//weight for correct answer |
| 270 |
|
$exercise_info['question'][$question_index]['weighting'][$correct_answer_index] = 1; |
| 271 |
|
} elseif (preg_match('/^ANSWER_EXPLANATION:\s?(.*)/', $info, $matches)) { |
| 272 |
|
//Comment of correct answer |
| 273 |
|
$correct_answer_index = array_search($matches[1], $answers_array); |
| 274 |
|
$exercise_info['question'][$question_index]['feedback'] = $matches[1]; |
| 275 |
|
} elseif (preg_match('/^TEXTO_CORRECTA:\s?(.*)/', $info, $matches)) { |
| 276 |
|
//Comment of correct answer (Spanish e-ducativa format) |
| 277 |
|
$correct_answer_index = array_search($matches[1], $answers_array); |
| 278 |
|
$exercise_info['question'][$question_index]['feedback'] = $matches[1]; |
|
@@ 279-283 (lines=5) @@
|
| 276 |
|
//Comment of correct answer (Spanish e-ducativa format) |
| 277 |
|
$correct_answer_index = array_search($matches[1], $answers_array); |
| 278 |
|
$exercise_info['question'][$question_index]['feedback'] = $matches[1]; |
| 279 |
|
} elseif (preg_match('/^T:\s?(.*)/', $info, $matches)) { |
| 280 |
|
//Question Title |
| 281 |
|
$correct_answer_index = array_search($matches[1], $answers_array); |
| 282 |
|
$exercise_info['question'][$question_index]['title'] = $matches[1]; |
| 283 |
|
} elseif (preg_match('/^TAGS:\s?([A-Z])\s?/', $info, $matches)) { |
| 284 |
|
//TAGS for chamilo >= 1.10 |
| 285 |
|
$exercise_info['question'][$question_index]['answer_tags'] = explode(',', $matches[1]); |
| 286 |
|
} elseif (preg_match('/^ETIQUETAS:\s?([A-Z])\s?/', $info, $matches)) { |