main/exercice/overview.php 1 location
|
@@ 223-232 (lines=10) @@
|
| 220 |
|
); |
| 221 |
|
$attempt_link .= " " . $teacher_revised; |
| 222 |
|
|
| 223 |
|
if (in_array( |
| 224 |
|
$objExercise->results_disabled, |
| 225 |
|
array( |
| 226 |
|
RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS, |
| 227 |
|
RESULT_DISABLE_SHOW_SCORE_ONLY, |
| 228 |
|
RESULT_DISABLE_SHOW_FINAL_SCORE_ONLY_WITH_CATEGORIES |
| 229 |
|
) |
| 230 |
|
)) { |
| 231 |
|
$row['result'] = $score; |
| 232 |
|
} |
| 233 |
|
|
| 234 |
|
if (in_array( |
| 235 |
|
$objExercise->results_disabled, |
main/inc/lib/exercise.lib.php 1 location
|
@@ 3478-3487 (lines=10) @@
|
| 3475 |
|
$show_results = true; |
| 3476 |
|
} |
| 3477 |
|
|
| 3478 |
|
if (in_array( |
| 3479 |
|
$objExercise->results_disabled, |
| 3480 |
|
array( |
| 3481 |
|
RESULT_DISABLE_SHOW_SCORE_ONLY, |
| 3482 |
|
RESULT_DISABLE_SHOW_FINAL_SCORE_ONLY_WITH_CATEGORIES |
| 3483 |
|
) |
| 3484 |
|
) |
| 3485 |
|
) { |
| 3486 |
|
$show_only_score = true; |
| 3487 |
|
} |
| 3488 |
|
|
| 3489 |
|
// Not display expected answer, but score, and feedback |
| 3490 |
|
$show_all_but_expected_answer = false; |
main/exercice/exercise.class.php 1 location
|
@@ 7719-7721 (lines=3) @@
|
| 7716 |
|
$show_results = true; |
| 7717 |
|
} |
| 7718 |
|
|
| 7719 |
|
if (in_array($this->results_disabled, array(RESULT_DISABLE_SHOW_SCORE_ONLY, RESULT_DISABLE_SHOW_FINAL_SCORE_ONLY_WITH_CATEGORIES))) { |
| 7720 |
|
$show_only_score = true; |
| 7721 |
|
} |
| 7722 |
|
|
| 7723 |
|
if ($show_results || $show_only_score) { |
| 7724 |
|
$user_info = api_get_user_info($exercise_stat_info['exe_user_id']); |