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: 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