public function format_grade_for_log(stdClass $grade) {
        global $DB;

        $user = $DB->get_record('user', array('id' => $grade->userid), '*', MUST_EXIST);

        $info = get_string('gradestudent', 'assign', array('id'=>$user->id, 'fullname'=>fullname($user)));
        if ($grade->grade != '') {
            $info .= get_string('grade') . ': ' . $this->display_grade($grade->grade, false) . '. ';
        } else {
            $info .= get_string('nograde', 'assign');
        }
        return $info;
    }
public function format_grade_for_log(stdClass $grade) {
        global $DB;

        $user = $DB->get_record('user', array('id' => $grade->userid), '*', MUST_EXIST);

        $info = get_string('gradestudent', 'assign', array('id'=>$user->id, 'fullname'=>fullname($user)));
        if ($grade->grade != '') {
            $info .= get_string('grade') . ': ' . $this->display_grade($grade->grade, false) . '. ';
        } else {
            $info .= get_string('nograde', 'assign');
        }
        return $info;
    }
public function format_grade_for_log ( stdClass $ grade ) { global $ DB ; $ user = $ DB -> get_record ( 'user' , array ( 'id' => $ grade -> userid ) , '*' , MUST_EXIST ) ; $ info = get_string ( 'gradestudent' , 'assign' , array ( 'id' => $ user -> id , 'fullname' => fullname ( $ user ) ) ) ; if ( $ grade -> grade != '' ) { $ info .= get_string ( 'grade' ) . ': ' . $ this -> display_grade ( $ grade -> grade , false ) . '. ' ; } else { $ info .= get_string ( 'nograde' , 'assign' ) ; } return $ info ; }
Take a grade object and print a short summary for the log file.
The size limit for the log file is 255 characters, so be careful not
to include too much information.

@deprecated since 2.7

@param stdClass $grade
@return string
Take a grade object and print a short summary for the log file . The size limit for the log file is 255 characters so be careful not to include too much information .