Quantcast
Channel: Backup and restore
Viewing all articles
Browse latest Browse all 6815

Re: Local plugin backup and grade item id annotation

$
0
0
by Dominique Palumbo.  

Hi,
in the file restore_assignfeedback_comments_subplugin.class.php

  public function process_assignfeedback_comments_grade($data) {
        global $DB;

        $data = (object)$data;
        $data->assignment = $this->get_new_parentid('assign');
        $oldgradeid = $data->grade;
        // The mapping is set in the restore for the core assign activity
        // when a grade node is processed.
        $data->grade = $this->get_mappingid('grade', $data->grade);

        $DB->insert_record('assignfeedback_comments', $data);
    }

You can probably do it also for grade item.

Hope it's help.

Dominique.

Viewing all articles
Browse latest Browse all 6815

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>