June 2017
Beginner to intermediate
368 pages
8h 31m
English
For more information on the Backup API (as it applies to activities), refer to the Moodle documentation here: https://docs.moodle.org/dev/Backup_API#API_for_activity_modules.
The documentation describes the functioning of these scripts very well so there isn't much need to go into too much detail here. Of interest is the define_structure(),function contained in the backup_wavefront_steps.php script, as this implements the actual backing up. The following is the complete function:
protected function define_structure(){ // To know if we are including userinfo. $userinfo = $this->get_setting_value('userinfo'); // Define each element separated. $wavefront = new backup_nested_element('wavefront', array('id'), array('course', 'folder', ...Read now
Unlock full access