public function set($value) {
        $finalgrade = false;
        $trimmed = trim($value);
        if (empty($trimmed)) {
            $feedback = null;
        } else {
            $feedback = $value;
        }

        $this->grade->grade_item->update_final_grade(
            $this->grade->userid, $finalgrade, 'singleview',
            $feedback, FORMAT_MOODLE
        );
    }
public function set($value) {
        $finalgrade = false;
        $trimmed = trim($value);
        if (empty($trimmed)) {
            $feedback = null;
        } else {
            $feedback = $value;
        }

        $this->grade->grade_item->update_final_grade(
            $this->grade->userid, $finalgrade, 'singleview',
            $feedback, FORMAT_MOODLE
        );
    }
public function set ( $ value ) { $ finalgrade = false ; $ trimmed = trim ( $ value ) ; if ( empty ( $ trimmed ) ) { $ feedback = null ; } else { $ feedback = $ value ; } $ this -> grade -> grade_item -> update_final_grade ( $ this -> grade -> userid , $ finalgrade , 'singleview' , $ feedback , FORMAT_MOODLE ) ; }
Update the value for this input.

@param string $value The new feedback value.
@return string Any error message
Update the value for this input .