예제 #1
0
$distinction_mark = $propertyObj->get_distinction_mark();
set_classification($propertyObj->get_marking(), $user_results, $passmark, $user_no, $string);
$report->sort_results();
$user_results = array_csort($user_results, $sortby, $ordering);
$completed_no = 0;
$total_score = 0;
$classifications = array('' => '', 1 => 0, 2 => 0, 3 => 0, 4 => 0, 5 => 0, 'ERROR' => 0);
for ($i = 0; $i < $user_no; $i++) {
    if ($user_results[$i]['metadataID'] != '') {
        // No attendance
        $classifications[$user_results[$i]['rating']]++;
        $total_score += $user_results[$i]['mark'];
        $completed_no++;
    }
}
$stats = $report->get_stats();
// Generate the main statistics
$results_cache = new ResultsCache($mysqli);
if ($results_cache->should_cache($propertyObj, $percent, $absent)) {
    $results_cache->save_paper_cache($paperID, $stats);
    // Cache general paper stats
    $results_cache->save_student_mark_cache($paperID, $user_results);
    // Cache student/paper marks
    $results_cache->save_median_question_marks($paperID, $q_medians);
    // Cache the question/paper medians
}
rating_num_text($user_results, $user_no, $propertyObj, $string);
?>
<!DOCTYPE html>
<html>
<head>