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