|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Namespaces | |
| namespace | workshopform |
Functions | |
| workshopform_accumulative_upgrade_legacy () | |
| workshopform_accumulative_upgrade_element (stdclass $old, array $newscaleids, $newworkshopid) | |
| workshopform_accumulative_upgrade_grade (stdclass $old, $newassessmentid, stdclass $newdimensioninfo) | |
| workshopform_accumulative_upgrade_legacy_needed () | |
| workshopform_accumulative_upgrade_scales () | |
| workshopform_accumulative_upgrade_element | ( | stdclass $ | old, |
| array $ | newscaleids, | ||
| $ | newworkshopid | ||
| ) |
Transforms a given record from workshop_elements_old into an object to be saved into workshopform_accumulative
| stdClass | $old | legacy record from workshop_elements_old |
| array | $newscaleids | mapping from old scale types into new standard ones |
| int | $newworkshopid | id of the new workshop instance that replaced the previous one |
Definition at line 101 of file upgradelib.php.

| workshopform_accumulative_upgrade_grade | ( | stdclass $ | old, |
| $ | newassessmentid, | ||
| stdclass $ | newdimensioninfo | ||
| ) |
Transforms given grade record
| stdClass | $old | |
| int | $newassessmentid | |
| stdClass | $newdimensioninfo |
Definition at line 144 of file upgradelib.php.

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 33 of file upgradelib.php.


Check if the the migration from legacy workshop 1.9 is needed
Definition at line 166 of file upgradelib.php.

Creates new standard (global) scales to replace the legacy workshop ones
In workshop 1.x, scale field in workshop_elements had the following meaning: 0 | 2 point Yes/No scale 1 | 2 point Present/Absent scale 2 | 2 point Correct/Incorrect scale 3 | 3 point Good/Poor scale 4 | 4 point Excellent/Very Poor scale 5 | 5 point Excellent/Very Poor scale 6 | 7 point Excellent/Very Poor scale 7 | Score out of 10 8 | Score out of 20 9 | Score out of 100
Definition at line 193 of file upgradelib.php.

