public function get_gradinginstance() {
        if (is_array($this->gradingattributes) && array_key_exists('gradinginstance', $this->gradingattributes)) {
            return $this->gradingattributes['gradinginstance'];
        } else {
            return null;
        }
    }
public function get_gradinginstance() {
        if (is_array($this->gradingattributes) && array_key_exists('gradinginstance', $this->gradingattributes)) {
            return $this->gradingattributes['gradinginstance'];
        } else {
            return null;
        }
    }
public function get_gradinginstance ( ) { if ( is_array ( $ this -> gradingattributes ) && array_key_exists ( 'gradinginstance' , $ this -> gradingattributes ) ) { return $ this -> gradingattributes [ 'gradinginstance' ] ; } else { return null ; } }
Helper function to retrieve gradingform_instance passed in element attributes

@return gradingform_instance
Helper function to retrieve gradingform_instance passed in element attributes