Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

(no description)

Copyright: 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 165 lines (7 kb)
Included or required:0 times
Referenced: 3 times
Includes or requires: 0 files

Defines 1 class


Class: backup_factory  - X-Ref

Non instantiable factory class providing different backup object instances

This class contains various methods available in order to easily
create different parts of the backup architecture in an easy way

TODO: Finish phpdocs
get_destination_chain($type, $id, $mode, $execution)   X-Ref
No description

get_logger_chain($interactive, $execution, $backupid)   X-Ref
No description

get_backup_activity_task($format, $moduleid)   X-Ref
Given one format and one course module id, return the corresponding
backup_xxxx_activity_task()


get_backup_block_task($format, $blockid, $moduleid = null)   X-Ref
Given one format, one block id and, optionally, one moduleid, return the corresponding backup_xxx_block_task()


get_backup_section_task($format, $sectionid)   X-Ref
Given one format and one section id, return the corresponding backup_section_task()


get_backup_course_task($format, $courseid)   X-Ref
Given one format and one course id, return the corresponding backup_course_task()


build_plan($controller)   X-Ref
Dispatches the creation of the @backup_plan to the proper format builder