Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Files | Namespaces | Classes | Functions | Variables
workshopform_rubric

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
 Provides support for the conversion of moodle1 backup to the moodle2 format.
 
file  lib.php
 This file defines a class with rubric grading strategy logic.
 
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

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())
 
 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 = 2020060900
 
$plugin component = 'workshopform_rubric'
 
$plugin version = 2020061500
 

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