protected function helper_grading_report_grade($grade, $over=null) {
        $a = new stdclass();
        $a->grade = is_null($grade) ? get_string('nullgrade', 'workshop') : $grade;
        if (is_null($over)) {
            $text = get_string('formataggregatedgrade', 'workshop', $a);
        } else {
            $a->over = is_null($over) ? get_string('nullgrade', 'workshop') : $over;
            $text = get_string('formataggregatedgradeover', 'workshop', $a);
        }
        return $text;
    }
protected function helper_grading_report_grade($grade, $over=null) {
        $a = new stdclass();
        $a->grade = is_null($grade) ? get_string('nullgrade', 'workshop') : $grade;
        if (is_null($over)) {
            $text = get_string('formataggregatedgrade', 'workshop', $a);
        } else {
            $a->over = is_null($over) ? get_string('nullgrade', 'workshop') : $over;
            $text = get_string('formataggregatedgradeover', 'workshop', $a);
        }
        return $text;
    }
protected function helper_grading_report_grade ( $ grade , $ over = null ) { $ a = new stdclass ( ) ; $ a -> grade = is_null ( $ grade ) ? get_string ( 'nullgrade' , 'workshop' ) : $ grade ; if ( is_null ( $ over ) ) { $ text = get_string ( 'formataggregatedgrade' , 'workshop' , $ a ) ; } else { $ a -> over = is_null ( $ over ) ? get_string ( 'nullgrade' , 'workshop' ) : $ over ; $ text = get_string ( 'formataggregatedgradeover' , 'workshop' , $ a ) ; } return $ text ; }
Formats the aggreagated grades
Formats the aggreagated grades