public function get_calculation() {
        if ($this->is_calculated()) {
            return grade_item::denormalize_formula($this->calculation, $this->courseid);

        } else {
            return NULL;
        }
    }
public function get_calculation() {
        if ($this->is_calculated()) {
            return grade_item::denormalize_formula($this->calculation, $this->courseid);

        } else {
            return NULL;
        }
    }
public function get_calculation ( ) { if ( $ this -> is_calculated ( ) ) { return grade_item :: denormalize_formula ( $ this -> calculation , $ this -> courseid ) ; } else { return NULL ; } }
Returns calculation string if grade calculated.

@return string Returns the grade item's calculation if calculation is used, null if not
Returns calculation string if grade calculated .