Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | List of all members
assign_upgrade_manager Class Reference

Class to manage upgrades from mod_assignment to mod_assign. More...

Public Member Functions

 upgrade_assignment ($oldassignmentid, & $log)
 This function converts all of the base settings for an instance of the old assignment to the new format. More...
 

Detailed Description

Class to manage upgrades from mod_assignment to mod_assign.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ upgrade_assignment()

assign_upgrade_manager::upgrade_assignment (   $oldassignmentid,
$log 
)

This function converts all of the base settings for an instance of the old assignment to the new format.

Then it calls each of the plugins to see if they can help upgrade this assignment.

Parameters
int$oldassignmentid(don't rely on the old assignment type even being installed)
string$logThis string gets appended to during the conversion process
Return values
booltrue or false

The documentation for this class was generated from the following file: