original_string: 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);
      }
code: 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);
      }
code_tokens: 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 ) ; }
docstring: Processes one grading area element
  
  @param array $data element data
docstring_tokens: Processes one grading area element