protected function load_definition() {
        global $DB;
        $this->definition = $DB->get_record('grading_definitions', array(
            'areaid' => $this->areaid,
            'method' => $this->get_method_name()), '*', IGNORE_MISSING);
    }
protected function load_definition() {
        global $DB;
        $this->definition = $DB->get_record('grading_definitions', array(
            'areaid' => $this->areaid,
            'method' => $this->get_method_name()), '*', IGNORE_MISSING);
    }
protected function load_definition ( ) { global $ DB ; $ this -> definition = $ DB -> get_record ( 'grading_definitions' , array ( 'areaid' => $ this -> areaid , 'method' => $ this -> get_method_name ( ) ) , '*' , IGNORE_MISSING ) ; }
Loads the form definition if it exists

The default implementation just tries to load the record from the {grading_definitions}
table. The plugins are likely to override this with a more complex query that loads
all required data at once.
Loads the form definition if it exists