original_string: public function process_assignsubmission_file_submission($data) {
          global $DB;
  
          $data = (object)$data;
          $data->assignment = $this->get_new_parentid('assign');
          $oldsubmissionid = $data->submission;
          // The mapping is set in the restore for the core assign activity
          // when a submission node is processed.
          $data->submission = $this->get_mappingid('submission', $data->submission);
  
          $DB->insert_record('assignsubmission_file', $data);
  
          $this->add_related_files('assignsubmission_file',
                                   'submission_files',
                                   'submission',
                                   null,
                                   $oldsubmissionid);
      }
code: public function process_assignsubmission_file_submission($data) {
          global $DB;
  
          $data = (object)$data;
          $data->assignment = $this->get_new_parentid('assign');
          $oldsubmissionid = $data->submission;
          // The mapping is set in the restore for the core assign activity
          // when a submission node is processed.
          $data->submission = $this->get_mappingid('submission', $data->submission);
  
          $DB->insert_record('assignsubmission_file', $data);
  
          $this->add_related_files('assignsubmission_file',
                                   'submission_files',
                                   'submission',
                                   null,
                                   $oldsubmissionid);
      }
code_tokens: public function process_assignsubmission_file_submission ( $ data ) { global $ DB ; $ data = ( object ) $ data ; $ data -> assignment = $ this -> get_new_parentid ( 'assign' ) ; $ oldsubmissionid = $ data -> submission ; // The mapping is set in the restore for the core assign activity // when a submission node is processed. $ data -> submission = $ this -> get_mappingid ( 'submission' , $ data -> submission ) ; $ DB -> insert_record ( 'assignsubmission_file' , $ data ) ; $ this -> add_related_files ( 'assignsubmission_file' , 'submission_files' , 'submission' , null , $ oldsubmissionid ) ; }
docstring: Processes one submission_file element
  @param mixed $data
  @return void
docstring_tokens: Processes one submission_file element