Moodle  2.2.1
http://www.collinsharper.com
moodle1_workshopform_accumulative_handler Class Reference
Inheritance diagram for moodle1_workshopform_accumulative_handler:
Collaboration diagram for moodle1_workshopform_accumulative_handler:

Public Member Functions

 process_legacy_element (array $data, array $raw)

Protected Member Functions

 get_new_scaleid ($oldscaleid)

Detailed Description

Conversion handler for the accumulative grading strategy data

Definition at line 34 of file lib.php.


Member Function Documentation

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

See also:
workshopform_accumulative_upgrade_scales()
Parameters:
int$oldscaleidthe value of the 'scale' field in the moodle.xml backup file
Returns:
array (int)oldscaleid => (int)newscaleid

Definition at line 78 of file lib.php.

Here is the caller graph for this function:

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.

Here is the call graph for this function:


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Enumerations