original_string: protected function get_grade($gradeid) {
          global $DB;
  
          $params = array('assignment'=>$this->get_instance()->id, 'id'=>$gradeid);
          return $DB->get_record('assign_grades', $params, '*', MUST_EXIST);
      }
code: protected function get_grade($gradeid) {
          global $DB;
  
          $params = array('assignment'=>$this->get_instance()->id, 'id'=>$gradeid);
          return $DB->get_record('assign_grades', $params, '*', MUST_EXIST);
      }
code_tokens: protected function get_grade ( $ gradeid ) { global $ DB ; $ params = array ( 'assignment' => $ this -> get_instance ( ) -> id , 'id' => $ gradeid ) ; return $ DB -> get_record ( 'assign_grades' , $ params , '*' , MUST_EXIST ) ; }
docstring: This will retrieve a grade object from the db.
  
  @param int $gradeid The id of the grade
  @return stdClass The grade record
docstring_tokens: This will retrieve a grade object from the db .