Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
workshopform_rubric

Topics

 files
 
 
 privacy
 
 

Directories

directory backup
  
 
directory classes
  
 

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...
 

Functions

 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 ()
 This file replaces the legacy STATEMENTS section in db/install.xml, lib.php/modulename_install() post installation hook and partially defaults.php.
 
 xmldb_workshopform_rubric_upgrade ($oldversion)
 Performs upgrade of the database structure and data.
 

Variables

 $plugin = 2023100400
 
$plugin component = 'workshopform_rubric'
 
$plugin version = 2023100900
 

Detailed Description

Function Documentation

◆ workshopform_rubric_upgrade_rubric_level()

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

Parameters
stdClass$oldlegacy record from joined workshop_elements_old + workshop_rubrics_old
int$newdimensionidid of the new workshopform_rubric dimension record to be linked to
Return values
stdclassto be saved in workshopform_rubric_levels

◆ workshopform_rubric_upgrade_weight()

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.

Parameters
$oldweightindex in legacy $WORKSHOP_EWEIGHTS
Return values
intnew weight

◆ xmldb_workshopform_rubric_install()

xmldb_workshopform_rubric_install ( )

This file replaces the legacy STATEMENTS section in db/install.xml, lib.php/modulename_install() post installation hook and partially defaults.php.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later Post installation procedure

◆ xmldb_workshopform_rubric_upgrade()

xmldb_workshopform_rubric_upgrade ( $oldversion)

Performs upgrade of the database structure and data.

Parameters
int$oldversionthe version we are upgrading from
Return values
booltrue