/** * Extracts the proficiency of a grade from the scale configuration. * * @param int $grade The grade (scale item ID). * @return array(int grade, bool proficient) */ public function get_proficiency_of_grade($grade) { $scaleid = $this->get_scaleid(); $scaleconfig = $this->get_scaleconfiguration(); if ($scaleid === null) { $scaleconfig = $this->get_framework()->get_scaleconfiguration(); } return competency_framework::get_proficiency_of_grade_from_scale_configuration($scaleconfig, $grade); }