Esempio n. 1
0
 public static function getById($specimen_type_id)
 {
     # Returns a specimen type entry fetch by ID
     global $con;
     $specimen_type_id = mysql_real_escape_string($specimen_type_id, $con);
     $saved_db = DbUtil::switchToLabConfigRevamp();
     $query_string = "SELECT * FROM specimen_type " . "WHERE specimen_type_id={$specimen_type_id}";
     $record = query_associative_one($query_string);
     DbUtil::switchRestore($saved_db);
     return SpecimenType::getObject($record);
 }