|
Moodle
2.2.1
http://www.collinsharper.com
|


Public Member Functions | |
| process_legacy_element (array $data, array $raw) | |
Protected Member Functions | |
| get_new_scaleid ($oldscaleid) | |
Conversion handler for the accumulative grading strategy data
| get_new_scaleid | ( | $ | oldscaleid | ) | [protected] |
If needed, creates new standard (global) scale to replace the legacy workshop one and returns the mapping
If the given $oldscaleid represents a scale, returns array $oldscaleid => $newscaleid that can be used as a parameter for workshopform_accumulative_upgrade_element(). Otherwise this method returns empty array.
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
| int | $oldscaleid | the value of the 'scale' field in the moodle.xml backup file |
Definition at line 78 of file lib.php.

| process_legacy_element | ( | array $ | data, |
| array $ | raw | ||
| ) |
Converts <ELEMENT> into <workshopform_accumulative_dimension>
Reimplemented from moodle1_workshopform_handler.
Definition at line 42 of file lib.php.
