/** * Extracts the default grade from the scale configuration. * * Returns an array where the first element is the grade, and the second * is a boolean representing whether or not this grade is considered 'proficient'. * * @return array(int grade, bool proficient) */ public function get_default_grade() { $scaleid = $this->get_scaleid(); $scaleconfig = $this->get_scaleconfiguration(); if ($scaleid === null) { $scaleconfig = $this->get_framework()->get_scaleconfiguration(); } return competency_framework::get_default_grade_from_scale_configuration($scaleconfig); }