original_string: private function process_dimension_grades_structure($elementname, $data) {
          global $DB;
  
          $data = (object)$data;
          $oldid = $data->id;
  
          $data->assessmentid = $this->get_new_parentid($elementname);
          $data->strategy = 'numerrors';
          $data->dimensionid = $this->get_mappingid($this->get_namefor('dimension'), $data->dimensionid);
  
          $DB->insert_record('workshop_grades', $data);
      }
code: private function process_dimension_grades_structure($elementname, $data) {
          global $DB;
  
          $data = (object)$data;
          $oldid = $data->id;
  
          $data->assessmentid = $this->get_new_parentid($elementname);
          $data->strategy = 'numerrors';
          $data->dimensionid = $this->get_mappingid($this->get_namefor('dimension'), $data->dimensionid);
  
          $DB->insert_record('workshop_grades', $data);
      }
code_tokens: private function process_dimension_grades_structure ( $ elementname , $ data ) { global $ DB ; $ data = ( object ) $ data ; $ oldid = $ data -> id ; $ data -> assessmentid = $ this -> get_new_parentid ( $ elementname ) ; $ data -> strategy = 'numerrors' ; $ data -> dimensionid = $ this -> get_mappingid ( $ this -> get_namefor ( 'dimension' ) , $ data -> dimensionid ) ; $ DB -> insert_record ( 'workshop_grades' , $ data ) ; }
docstring: Process the dimension grades linked with the given type of assessment
  
  Populates the workshop_grades table with new records mapped to the restored
  instances of assessments.
  
  @param mixed $elementname the name of the assessment element
  @param array $data parsed xml data
docstring_tokens: Process the dimension grades linked with the given type of assessment