Moodle PHP Documentation 4.2
Moodle 4.2.8 (Build: 20240610) (2d41ac46f45)
workshopform_rubric

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 = 2023041800
 
$plugin component = 'workshopform_rubric'
 
$plugin version = 2023042400
 

Detailed Description

Function Documentation

◆ workshopform_rubric_pluginfile()

workshopform_rubric_pluginfile ( $course,
$cm,
$context,
$filearea,
array $args,
$forcedownload,
array $options = array() )

Server workshop files.

Parameters
stdClass$coursecourse object
stdClass$cmcourse module object
stdClass$contextcontext object
string$fileareafile area
array$argsextra arguments
bool$forcedownloadwhether or not force download
array$optionsadditional options affecting the file serving
Return values
bool

◆ 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