main/exercice/exercise.class.php 1 location
|
@@ 7730-7732 (lines=3) @@
|
| 7727 |
|
$show_results = true; |
| 7728 |
|
} |
| 7729 |
|
|
| 7730 |
|
if (in_array($this->results_disabled, array(RESULT_DISABLE_SHOW_SCORE_ONLY, RESULT_DISABLE_SHOW_FINAL_SCORE_ONLY_WITH_CATEGORIES))) { |
| 7731 |
|
$show_only_score = true; |
| 7732 |
|
} |
| 7733 |
|
|
| 7734 |
|
if ($show_results || $show_only_score) { |
| 7735 |
|
$user_info = api_get_user_info($exercise_stat_info['exe_user_id']); |
main/exercice/overview.php 1 location
|
@@ 211-220 (lines=10) @@
|
| 208 |
|
); |
| 209 |
|
$attempt_link .= " " . $teacher_revised; |
| 210 |
|
|
| 211 |
|
if (in_array( |
| 212 |
|
$objExercise->results_disabled, |
| 213 |
|
array( |
| 214 |
|
RESULT_DISABLE_SHOW_SCORE_AND_EXPECTED_ANSWERS, |
| 215 |
|
RESULT_DISABLE_SHOW_SCORE_ONLY, |
| 216 |
|
RESULT_DISABLE_SHOW_FINAL_SCORE_ONLY_WITH_CATEGORIES |
| 217 |
|
) |
| 218 |
|
)) { |
| 219 |
|
$row['result'] = $score; |
| 220 |
|
} |
| 221 |
|
|
| 222 |
|
if (in_array( |
| 223 |
|
$objExercise->results_disabled, |
main/inc/lib/exercise.lib.php 1 location
|
@@ 3465-3474 (lines=10) @@
|
| 3462 |
|
$show_results = true; |
| 3463 |
|
} |
| 3464 |
|
|
| 3465 |
|
if (in_array( |
| 3466 |
|
$objExercise->results_disabled, |
| 3467 |
|
array( |
| 3468 |
|
RESULT_DISABLE_SHOW_SCORE_ONLY, |
| 3469 |
|
RESULT_DISABLE_SHOW_FINAL_SCORE_ONLY_WITH_CATEGORIES |
| 3470 |
|
) |
| 3471 |
|
) |
| 3472 |
|
) { |
| 3473 |
|
$show_only_score = true; |
| 3474 |
|
} |
| 3475 |
|
|
| 3476 |
|
// Not display expected answer, but score, and feedback |
| 3477 |
|
$show_all_but_expected_answer = false; |