Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 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.

Differences Between: [Versions 39 and 400] [Versions 39 and 401] [Versions 39 and 402] [Versions 39 and 403]

Define all the restore steps that will be used by the restore_assign_activity_task

Copyright: 2012 NetSpot {@link http://www.netspot.com.au}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 433 lines (16 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class


Class: restore_assign_activity_structure_step  - X-Ref

Define the complete assignment structure for restore, with file and id annotations

define_structure()   X-Ref
Define the structure of the restore workflow.

return: restore_path_element $structure

process_assign($data)   X-Ref
Process an assign restore.

param: object $data The data in object form
return: void

process_assign_submission($data)   X-Ref
Process a submission restore

param: object $data The data in object form
return: void

process_assign_userflag($data)   X-Ref
Process a user_flags restore

param: object $data The data in object form
return: void

process_assign_grade($data)   X-Ref
Process a grade restore

param: object $data The data in object form
return: void

process_assign_plugin_config($data)   X-Ref
Process a plugin-config restore

param: object $data The data in object form
return: void

set_latest_submission_field()   X-Ref
For all submissions in this assignment, either set the
submission->latest field to 1 for the latest attempts
or create a new submission record for grades with no submission.

return: void

add_plugin_config_files($subtype)   X-Ref
Restore files from plugin configuration

param: string $subtype the plugin type to handle
return: void

process_assign_override($data)   X-Ref
Process a assign override restore

param: object $data The data in object form
return: void

after_execute()   X-Ref
Once the database tables have been fully restored, restore the files

return: void