Moodle PHP Documentation 4.4
Moodle 4.4.1 (Build: 20240610) (db07c09afc5)
|
Namespaces | |
namespace | 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()) | |
Server workshop files. | |
workshopform_rubric_upgrade_rubric_level (stdclass $old, $newdimensionid) | |
Transforms given record into an object to be saved into workshopform_rubric_levels. | |
workshopform_rubric_upgrade_weight ($oldweight) | |
Given old workshop element weight, returns the weight multiplier. | |
xmldb_workshopform_rubric_install () | |
Post installation procedure. | |
xmldb_workshopform_rubric_upgrade ($oldversion) | |
Performs upgrade of the database structure and data. | |
Variables | |
$plugin = 2024041600 | |
$plugin | component = 'workshopform_rubric' |
$plugin | version = 2024042200 |
workshopform_rubric_pluginfile | ( | $course, | |
$cm, | |||
$context, | |||
$filearea, | |||
array | $args, | ||
$forcedownload, | |||
array | $options = array() ) |
Server workshop files.
stdClass | $course | course object |
stdClass | $cm | course module object |
stdClass | $context | context object |
string | $filearea | file area |
array | $args | extra arguments |
bool | $forcedownload | whether or not force download |
array | $options | additional options affecting the file serving |
bool |
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 |