Moodle APIs
3.8
Moodle 3.8.6 (Build: 20201109)
|
Files | |
file | assessment_form.php |
This file defines mforms to assess a submission by rubric grading strategy. | |
file | backup_workshopform_rubric_subplugin.class.php |
file | edit_form.php |
This file defines an mform to edit rubric grading strategy forms. | |
file | install.php |
This file replaces the legacy STATEMENTS section in db/install.xml, lib.php/modulename_install() post installation hook and partially defaults.php. | |
file | lib.php |
This file defines a class with rubric grading strategy logic. | |
file | lib.php |
Provides support for the conversion of moodle1 backup to the moodle2 format. | |
file | provider.php |
Provides the class workshopform_rubric\privacy\provider. | |
file | restore_workshopform_rubric_subplugin.class.php |
file | upgrade.php |
Keeps track of upgrades to the workshop rubric grading strategy. | |
file | version.php |
Defines the version of workshop rubric grading strategy subplugin. | |
Namespaces | |
workshopform_rubric\privacy | |
| |
Classes | |
class | backup_workshopform_rubric_subplugin |
Provides the information to backup rubric grading strategy information. More... | |
class | moodle1_workshopform_rubric_handler |
Conversion handler for the rubric grading strategy data. More... | |
class | restore_workshopform_rubric_subplugin |
restore subplugin class that provides the necessary information needed to restore one workshopform_rubric subplugin. More... | |
class | workshop_edit_rubric_strategy_form |
Class for editing rubric grading strategy forms. More... | |
class | workshop_rubric_assessment_form |
Base class representing a form for assessing submissions by rubric grading strategy. More... | |
class | workshop_rubric_grid_assessment_form |
Class representing a form for assessing submissions by rubric grading strategy - grid layout. More... | |
class | workshop_rubric_list_assessment_form |
Class representing a form for assessing submissions by rubric grading strategy - list layout. More... | |
class | workshop_rubric_strategy |
Rubric grading strategy logic. More... | |
class | workshopform_rubric\privacy\provider |
Privacy API implementation for the Rubric strategy. More... | |
Functions | |
workshopform_rubric_pluginfile ($course, $cm, $context, $filearea, array $args, $forcedownload, array $options=array()) | |
workshopform_rubric_upgrade_rubric_level (stdclass $old, $newdimensionid) | |
Transforms given record into an object to be saved into workshopform_rubric_levels. More... | |
workshopform_rubric_upgrade_weight ($oldweight) | |
Given old workshop element weight, returns the weight multiplier. More... | |
xmldb_workshopform_rubric_install () | |
Post installation procedure. | |
xmldb_workshopform_rubric_upgrade ($oldversion) | |
Performs upgrade of the database structure and data. More... | |
Variables | |
$plugin | component = 'workshopform_rubric' |
$plugin | requires = 2019111200 |
$plugin | version = 2019111800 |
workshopform_rubric_upgrade_rubric_level | ( | stdclass | $old, |
$newdimensionid | |||
) |
Transforms given record into an object to be saved into workshopform_rubric_levels.
This is used during Rubric 1.9 -> Rubric 2.0 conversion
stdClass | $old | legacy record from joined workshop_elements_old + workshop_rubrics_old |
int | $newdimensionid | id of the new workshopform_rubric dimension record to be linked to |
stdclass | to be saved in workshopform_rubric_levels |
workshopform_rubric_upgrade_weight | ( | $oldweight | ) |
Given old workshop element weight, returns the weight multiplier.
Negative weights are not supported any more and are replaced with weight = 0. Legacy workshop did not store the raw weight but the index in the array of weights (see $WORKSHOP_EWEIGHTS in workshop 1.x). workshop 2.0 uses integer weights only (0-16) so all previous weights are multiplied by 4.
$oldweight | index in legacy $WORKSHOP_EWEIGHTS |
int | new weight |
xmldb_workshopform_rubric_upgrade | ( | $oldversion | ) |
Performs upgrade of the database structure and data.
int | $oldversion | the version we are upgrading from |
bool | true |