Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(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: 0 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