protected static function transform_competency_grade(competency $competency, $grade, performance_helper $helper) {
        if ($grade === null) {
            return '-';
        }
        $scale = $helper->get_scale_from_competency($competency);
        return $scale->scale_items[$grade - 1];
    }
protected static function transform_competency_grade(competency $competency, $grade, performance_helper $helper) {
        if ($grade === null) {
            return '-';
        }
        $scale = $helper->get_scale_from_competency($competency);
        return $scale->scale_items[$grade - 1];
    }
protected static function transform_competency_grade ( competency $ competency , $ grade , performance_helper $ helper ) { if ( $ grade === null ) { return '-' ; } $ scale = $ helper -> get_scale_from_competency ( $ competency ) ; return $ scale -> scale_items [ $ grade - 1 ] ; }
Transform a competency rating.

@param competency $competency The competency.
@param int $grade The grade.
@param performance_helper $helper The performance helper.
@return string
Transform a competency rating .