Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.11.x will end 14 Nov 2022 (12 months plus 6 months extension).
  • Bug fixes for security issues in 3.11.x will end 13 Nov 2023 (18 months plus 12 months extension).
  • PHP version: minimum PHP 7.3.0 Note: minimum PHP version has increased since Moodle 3.10. PHP 7.4.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: 174 lines (7 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 1 class

restore_assignment_activity_structure_step:: (7 methods):
  define_structure()
  process_assignment()
  process_assignment_submission()
  upgrade_mod_assign()
  after_execute()
  after_restore()
  is_valid_assignment_subplugin()


Class: restore_assignment_activity_structure_step  - X-Ref

Structure step to restore one assignment activity

define_structure()   X-Ref
No description

process_assignment($data)   X-Ref
No description

process_assignment_submission($data)   X-Ref
No description

upgrade_mod_assign()   X-Ref
This function will attempt to upgrade the newly restored assignment to an instance of mod_assign if
mod_assignment is currently disabled and mod_assign is enabled and mod_assign says it can upgrade this assignment.

return: none

after_execute()   X-Ref
No description

after_restore()   X-Ref
Hook to execute assignment upgrade after restore.


is_valid_assignment_subplugin($type)   X-Ref
Determine if a sub-plugin is supported or not

param: string $type
return: bool