$repmodule = isset($_GET['repmodule']) ? $_GET['repmodule'] : ''; // Get some paper properties $propertyObj = PaperProperties::get_paper_properties_by_id($paperID, $mysqli, $string); $paper = $propertyObj->get_paper_title(); $crypt_name = $propertyObj->get_crypt_name(); $exclusions = new Exclusion($paperID, $mysqli); $exclusions->load(); // Get any questions to exclude. $report = new ClassTotals($studentsonly, $percent, $ordering, $absent, $sortby, $userObject, $propertyObj, $startdate, $enddate, $repcourse, $repmodule, $mysqli, $string); $report->load_answers(); $paper_buffer = $report->get_paper_buffer(); $question_no = $report->get_question_no(); $user_results = load_osce_results($propertyObj, $demo, $configObject, $question_no, $mysqli); $report->set_user_results($user_results); $report->generate_stats(); $user_no = $report->get_user_no(); $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);