/
var
/
www
/
html
/
mogi
/
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() { /* tabela videaula: id course name intro introformat content contentformat legacyfiles legacyfileslast display displayoptions revision timemodified subtitle paidkey video file poster checkpoints captions chapters logo skin thumbnails position tabela videoaula_checkpoint: id userid videoaulaid checkpoint timeupdated tabela videoaula_startat: id userid videoaulaid startat timeupdated */ // 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( 'course','name', 'intro', 'introformat', 'content', 'contentformat','legacyfiles','legacyfileslast', 'display', 'displayoptions','revision','timemodified','subtitle','paidkey','video','file','poster', 'checkpoints','captions','chapters','logo','skin','thumbnails','position')); /*$checkpoint = new backup_nested_element('checkpoint', array('id'), array('userid','videoaulaid','checkpoint','timeupdated')); $startat = new backup_nested_element('startat', array('id'), array('userid','videoaulaid','startat','timeupdated')); // Build the tree $page->add_child($checkpoint); $page->add_child($startat);*/ // 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); } }