Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is 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: 1 time
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