original_string: public function process_workshopform_rubric_dimension($data) {
          global $DB;
  
          $data = (object)$data;
          $oldid = $data->id;
  
          $data->workshopid = $this->get_new_parentid('workshop');
  
          $newitemid = $DB->insert_record('workshopform_rubric', $data);
          $this->set_mapping($this->get_namefor('dimension'), $oldid, $newitemid, true);
  
          // Process files for this workshopform_rubric->id only
          $this->add_related_files('workshopform_rubric', 'description', $this->get_namefor('dimension'), null, $oldid);
      }
code: public function process_workshopform_rubric_dimension($data) {
          global $DB;
  
          $data = (object)$data;
          $oldid = $data->id;
  
          $data->workshopid = $this->get_new_parentid('workshop');
  
          $newitemid = $DB->insert_record('workshopform_rubric', $data);
          $this->set_mapping($this->get_namefor('dimension'), $oldid, $newitemid, true);
  
          // Process files for this workshopform_rubric->id only
          $this->add_related_files('workshopform_rubric', 'description', $this->get_namefor('dimension'), null, $oldid);
      }
code_tokens: public function process_workshopform_rubric_dimension ( $ data ) { global $ DB ; $ data = ( object ) $ data ; $ oldid = $ data -> id ; $ data -> workshopid = $ this -> get_new_parentid ( 'workshop' ) ; $ newitemid = $ DB -> insert_record ( 'workshopform_rubric' , $ data ) ; $ this -> set_mapping ( $ this -> get_namefor ( 'dimension' ) , $ oldid , $ newitemid , true ) ; // Process files for this workshopform_rubric->id only $ this -> add_related_files ( 'workshopform_rubric' , 'description' , $ this -> get_namefor ( 'dimension' ) , null , $ oldid ) ; }
docstring: Processes the workshopform_rubric_dimension element
docstring_tokens: Processes the workshopform_rubric_dimension element