Example #1
0
 /**
  * Check if marking has started for the OSCE station.
  * @param int $paperID
  * @param stdClass $mysqli
  * @return boolean
  */
 public function get_osce_started_status($paperID, $mysqli)
 {
     if ($this->paper_type != 4) {
         return false;
     }
     $result = $mysqli->prepare("SELECT 1 as count FROM (modules_student, users) JOIN log4_overall ON users.id = log4_overall.userID AND q_paper = ? WHERE modules_student.userID = users.id LIMIT 1");
     $result->bind_param('s', $paperID);
     $result->execute();
     $result->store_result();
     if ($result->num_rows == 1) {
         return true;
     }
     return false;
 }