protected function process_grading_area($data) {
        global $DB;

        $task = $this->get_task();
        $data = (object)$data;
        $oldid = $data->id;
        $data->component = 'mod_'.$task->get_modulename();
        $data->contextid = $task->get_contextid();

        $newid = $DB->insert_record('grading_areas', $data);
        $this->set_mapping('grading_area', $oldid, $newid);
    }
protected function process_grading_area($data) {
        global $DB;

        $task = $this->get_task();
        $data = (object)$data;
        $oldid = $data->id;
        $data->component = 'mod_'.$task->get_modulename();
        $data->contextid = $task->get_contextid();

        $newid = $DB->insert_record('grading_areas', $data);
        $this->set_mapping('grading_area', $oldid, $newid);
    }
protected function process_grading_area ( $ data ) { global $ DB ; $ task = $ this -> get_task ( ) ; $ data = ( object ) $ data ; $ oldid = $ data -> id ; $ data -> component = 'mod_' . $ task -> get_modulename ( ) ; $ data -> contextid = $ task -> get_contextid ( ) ; $ newid = $ DB -> insert_record ( 'grading_areas' , $ data ) ; $ this -> set_mapping ( 'grading_area' , $ oldid , $ newid ) ; }
Processes one grading area element

@param array $data element data
Processes one grading area element