public function getGradeLetter() { $grade = false; $grade_letters = $this->course->getGradeLetters(); if ($this->grade_data) { $grade = $this->grade_data->finalgrade; } if ($grade && $grade != '') { return GcrEschoolTable::getLetterGrade($grade, $grade_letters); } return false; }
public function getAverageGradeLetter() { $grade_letters = array('93' => 'A', '90' => 'A-', '87' => 'B+', '83' => 'B', '80' => 'B-', '77' => 'C+', '73' => 'C', '70' => 'C-', '67' => 'D+', '60' => 'D', '0' => 'F'); return GcrEschoolTable::getLetterGrade($this->totals['average_grade'], $grade_letters); }