/
var
/
www
/
html
/
professoronline
/
mod
/
videoaula
/
backup
/
moodle2
/
Upload File
HOME
<?php /** * @package mod * @subpackage videoaula */ defined('MOODLE_INTERNAL') || die; /** * Define all the backup steps that will be used by the backup_videoaula_activity_task */ /** * Define the complete videoaula structure for backup, with file and id annotations */ class backup_videoaula_activity_structure_step extends backup_activity_structure_step { protected function define_structure() { // To know if we are including userinfo $userinfo = $this->get_setting_value('userinfo'); // Define each element separated $page = new backup_nested_element('videoaula', array('id'), array( 'name', 'intro', 'introformat', 'content', 'contentformat', 'legacyfiles', 'legacyfileslast', 'display', 'displayoptions', 'revision', 'timemodified')); // Build the tree // (love this) // Define sources $page->set_source_table('videoaula', array('id' => backup::VAR_ACTIVITYID)); // Define id annotations // (none) // Define file annotations $page->annotate_files('mod_videoaula', 'intro', null); // This file areas haven't itemid $page->annotate_files('mod_videoaula', 'content', null); // This file areas haven't itemid // Return the root element (videoaula), wrapped into standard activity structure return $this->prepare_activity_structure($page); } }