Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/mod/workshop/form/numerrors/db/upgradelib.php File Reference

Go to the source code of this file.

Namespaces

namespace  workshopform

Functions

 workshopform_numerrors_upgrade_legacy ()
 workshopform_numerrors_upgrade_element (stdclass $old, $newworkshopid)
 workshopform_numerrors_upgrade_grade (stdclass $old, $newassessmentid, stdclass $newdimensioninfo)
 workshopform_numerrors_upgrade_legacy_needed ()

Function Documentation

workshopform_numerrors_upgrade_element ( stdclass $  old,
newworkshopid 
)

Transforms a given record from workshop_elements_old into an object to be saved into workshopform_numerrors

Parameters:
stdClass$oldlegacy record from workshop_elements_old
int$newworkshopidid of the new workshop instance that replaced the previous one
Returns:
stdclass to be saved in workshopform_numerrors

Definition at line 127 of file upgradelib.php.

Here is the caller graph for this function:

workshopform_numerrors_upgrade_grade ( stdclass $  old,
newassessmentid,
stdclass $  newdimensioninfo 
)

Transforms given grade record

Parameters:
stdClass$old
int$newassessmentid
stdClass$newdimensioninfo
Returns:
stdclass

Definition at line 160 of file upgradelib.php.

Here is the caller graph for this function:

Check if there are some legacy workshop 1.x data to be migrated and upgrade them

This must be called after workshop core migration has finished so that all assessments are already upgraded and tables are correctly renamed.

Definition at line 35 of file upgradelib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

Check if the the migration from legacy workshop 1.9 is needed

Returns:
bool

Definition at line 176 of file upgradelib.php.

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations