Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.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