by Eramir Rasvet.
$voiceshadow->annotate_files('mod_voiceshadow', 'private', null);
How can I update old ID numbers to new when I make restoring from backup?
For userID I use this line
$data->teacher = $this->get_mappingid('user', $data->teacher);
Should I use this line for updating file IDs?
$data->fileid = $this->get_mappingid('file', $data->fileid);
Hello!
When I make backup of my module files, I use this line:$voiceshadow->annotate_files('mod_voiceshadow', 'private', null);
How can I update old ID numbers to new when I make restoring from backup?
For userID I use this line
$data->teacher = $this->get_mappingid('user', $data->teacher);
Should I use this line for updating file IDs?
$data->fileid = $this->get_mappingid('file', $data->fileid);