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);
    }
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);
    }
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 ) ; }
Processes one submission_file element
@param mixed $data
@return void
Processes one submission_file element