Fix module name, export a bit more data

This commit is contained in:
Kumi 2021-11-30 12:00:44 +01:00
parent 34ac04d92b
commit 63d2ff658d
2 changed files with 5 additions and 5 deletions

View file

@ -42,7 +42,7 @@ class backup_expcontent_activity_structure_step extends backup_activity_structur
// The instance.
$expcontent = new backup_nested_element('expcontent', array('id'), array(
'name', 'contentid', 'intro', 'introformat'));
'name', 'contentid', 'intro', 'introformat', 'timecreated', 'timemodified'));
// Define sources.
$expcontent->set_source_table('expcontent', array('id' => backup::VAR_ACTIVITYID));

View file

@ -42,7 +42,7 @@ class restore_expcontent_activity_structure_step extends restore_activity_struct
// The array used to store the path to the items we want to restore.
$paths = array();
// The htmlcert instance.
// The expcontent instance.
$paths[] = new restore_path_element('expcontent', '/activity/expcontent');
// Return the paths wrapped into standard activity structure.
@ -50,9 +50,9 @@ class restore_expcontent_activity_structure_step extends restore_activity_struct
}
/**
* Handles restoring the htmlcert activity.
* Handles restoring the expcontent activity.
*
* @param stdClass $data the htmlcert data
* @param stdClass $data the expcontent data
*/
protected function process_expcontent($data) {
global $DB;
@ -63,7 +63,7 @@ class restore_expcontent_activity_structure_step extends restore_activity_struct
$data->timemodified = $this->apply_date_offset($data->timemodified);
$data->usermodified = $USER->id;
// Insert the htmlcert record.
// Insert the expcontent record.
$newitemid = $DB->insert_record('expcontent', $data);
// Immediately after inserting record call this.