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

Defines 11 classes

mock_base_plan:: (2 methods):
  build()
  get_progress()

mock_base_step:: (1 method):
  execute()

mock_backup_step:: (1 method):
  execute()

mock_backup_task_basepath:: (5 methods):
  build()
  define_settings()
  get_taskbasepath()
  set_modulename()
  get_modulename()

mock_restore_task_basepath:: (4 methods):
  build()
  define_settings()
  set_modulename()
  get_modulename()

mock_backup_structure_step:: (3 methods):
  define_structure()
  add_plugin_structure()
  add_subplugin_structure()

mock_restore_structure_step:: (4 methods):
  define_structure()
  add_plugin_structure()
  add_subplugin_structure()
  get_pathelements()

mock_fullpath_activity_setting:: (1 method):
  process_change()

mock_backupid_activity_setting:: (1 method):
  process_change()

mock_base_task:: (2 methods):
  build()
  define_settings()

mock_backup_task:: (2 methods):
  build()
  define_settings()


Class: mock_base_plan  - X-Ref

Instantiable class extending base_plan in order to be able to perform tests

build()   X-Ref
No description

get_progress()   X-Ref
No description

Class: mock_base_step  - X-Ref

Instantiable class extending base_step in order to be able to perform tests

execute()   X-Ref
No description

Class: mock_backup_step  - X-Ref

Instantiable class extending backup_step in order to be able to perform tests

execute()   X-Ref
No description

Class: mock_backup_task_basepath  - X-Ref

Instantiable class extending backup_task in order to mockup get_taskbasepath()

build()   X-Ref
No description

define_settings()   X-Ref
No description

get_taskbasepath()   X-Ref
No description

set_modulename($modulename)   X-Ref
No description

get_modulename()   X-Ref
No description

Class: mock_restore_task_basepath  - X-Ref

Instantiable class extending restore_task in order to mockup get_taskbasepath()

build()   X-Ref
No description

define_settings()   X-Ref
No description

set_modulename($modulename)   X-Ref
No description

get_modulename()   X-Ref
No description

Class: mock_backup_structure_step  - X-Ref

Instantiable class extending backup_structure_step in order to be able to perform tests

Class: mock_restore_structure_step  - X-Ref

define_structure()   X-Ref
No description

add_plugin_structure($plugintype, $element)   X-Ref
No description

add_subplugin_structure($subplugintype, $element, $plugintype = null, $pluginname = null)   X-Ref
No description

get_pathelements()   X-Ref
No description

Class: mock_fullpath_activity_setting  - X-Ref

Instantiable class extending activity_backup_setting to be added to task and perform tests

process_change($setting, $ctype, $oldv)   X-Ref
No description

Class: mock_backupid_activity_setting  - X-Ref

Instantiable class extending activity_backup_setting to be added to task and perform tests

process_change($setting, $ctype, $oldv)   X-Ref
No description

Class: mock_base_task  - X-Ref

Instantiable class extending base_task in order to be able to perform tests

build()   X-Ref
No description

define_settings()   X-Ref
No description

Class: mock_backup_task  - X-Ref

Instantiable class extending backup_task in order to be able to perform tests

build()   X-Ref
No description

define_settings()   X-Ref
No description