$q_medians = load_osce_medians($mysqli); if ($propertyObj->get_pass_mark() == 101) { $borderline_method = true; } else { $borderline_method = false; } if ($borderline_method) { $passmark = getBlinePassmk($user_results, $user_no, $propertyObj); } elseif ($propertyObj->get_pass_mark() == 102) { $passmark = 'N/A'; } else { $passmark = $propertyObj->get_pass_mark(); } $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);