public function get_value() {
        $this->label = $this->grade->grade_item->itemname;

        $val = $this->grade->finalgrade;
        if ($this->grade->grade_item->scaleid) {
            return $val ? (int)$val : -1;
        } else {
            return $val ? format_float($val, $this->grade->grade_item->get_decimals()) : '';
        }
    }
public function get_value() {
        $this->label = $this->grade->grade_item->itemname;

        $val = $this->grade->finalgrade;
        if ($this->grade->grade_item->scaleid) {
            return $val ? (int)$val : -1;
        } else {
            return $val ? format_float($val, $this->grade->grade_item->get_decimals()) : '';
        }
    }
public function get_value ( ) { $ this -> label = $ this -> grade -> grade_item -> itemname ; $ val = $ this -> grade -> finalgrade ; if ( $ this -> grade -> grade_item -> scaleid ) { return $ val ? ( int ) $ val : - 1 ; } else { return $ val ? format_float ( $ val , $ this -> grade -> grade_item -> get_decimals ( ) ) : '' ; } }
Get the value for this input.

@return string The value based on the grade_grade.
Get the value for this input .