Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.x is supported too.

Defines backup_section_task class

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: 172 lines (6 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

backup_section_task:: (7 methods):
  __construct()
  get_sectionid()
  get_taskbasepath()
  build()
  execute()
  get_setting()
  define_settings()


Class: backup_section_task  - X-Ref

section task that provides all the properties and common steps to be performed
when one section is being backup

TODO: Finish phpdocs
__construct($name, $sectionid, $plan = null)   X-Ref
Constructor - instantiates one object of this class


get_sectionid()   X-Ref
No description

get_taskbasepath()   X-Ref
Section tasks have their own directory to write files


build()   X-Ref
Create all the steps that will be part of this task


execute()   X-Ref
Exceptionally override the execute method, so, based in the section_included setting, we are able
to skip the execution of one task completely


get_setting($name)   X-Ref
Specialisation that, first of all, looks for the setting within
the task with the the prefix added and later, delegates to parent
without adding anything


define_settings()   X-Ref
Define the common setting that any backup section will have