Fix module name, export a bit more data
This commit is contained in:
parent
34ac04d92b
commit
63d2ff658d
2 changed files with 5 additions and 5 deletions
|
@ -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));
|
||||
|
|
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue