original_string: public final function set_grade_range(array $graderange, $allowgradedecimals = false) {
          $this->graderange = $graderange;
          $this->allowgradedecimals = $allowgradedecimals;
      }
code: public final function set_grade_range(array $graderange, $allowgradedecimals = false) {
          $this->graderange = $graderange;
          $this->allowgradedecimals = $allowgradedecimals;
      }
code_tokens: public final function set_grade_range ( array $ graderange , $ allowgradedecimals = false ) { $ this -> graderange = $ graderange ; $ this -> allowgradedecimals = $ allowgradedecimals ; }
docstring: Sets the range of grades used in this area. This is usually either range like 0-100
  or the scale where keys start from 1.
  
  Typically modules will call it:
  $controller->set_grade_range(make_grades_menu($gradingtype), $gradingtype > 0);
  Negative $gradingtype means that scale is used and the grade must be rounded
  to the nearest int. Positive $gradingtype means that range 0..$gradingtype
  is used for the grades and in this case grade does not have to be rounded.
  
  Sometimes modules always expect grade to be rounded (like mod_assignment does).
  
  @param array $graderange array where first _key_ is the minimum grade and the
  last key is the maximum grade.
  @param bool $allowgradedecimals if decimal values are allowed as grades.
docstring_tokens: Sets the range of grades used in this area . This is usually either range like 0 - 100 or the scale where keys start from 1 .