. /** * @package mod * @subpackage autoattendmod * @copyright 2016 Fumi.Iseki */ /** * Define all the backup steps that will be used by the backup_autoattendmod_activity_task */ /** * Define the complete autoattendmod structure for backup, with file and id annotations */ class backup_autoattendmod_activity_structure_step extends backup_activity_structure_step { protected function define_structure() { global $DB; // To know if we are including userinfo //$userinfo = $this->get_setting_value('userinfo'); // // Define each element separated $autoattendmod = new backup_nested_element('autoattendmod', array('id'), array( 'name', 'intro', 'introformat', 'namepattern', 'emailenable', 'allreports', 'emailkey', 'emailuser', 'homeroom', 'feedback', 'backupblock', 'dbversion', 'timemodified')); // // Build the tree // (none) // // Define sources $autoattendmod->set_source_table('autoattendmod', array('id' => backup::VAR_ACTIVITYID)); // // Define id annotations // (none) // // Define file annotations $autoattendmod->annotate_files('mod_autoattendmod', 'intro', null); // This file area hasn't itemid // // Return the root element (autoattendmod), wrapped into standard activity structure return $this->prepare_activity_structure($autoattendmod); } }