Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
workshop_evaluation Class Reference

Base class for all grading evaluation subplugins. More...

Inheritance diagram for workshop_evaluation:
workshop_best_evaluation

Public Member Functions

 get_settings_form (moodle_url $actionurl=null)
 Returns an instance of the form to provide evaluation settings.
 
 update_grading_grades (stdClass $settings, $restrict=null)
 Calculates grades for assessment and updates 'gradinggrade' fields in 'workshop_assessments' table.
 

Static Public Member Functions

static delete_instance ($workshopid)
 Delete all data related to a given workshop module instance.
 

Protected Attributes

workshop $workshop
 the parent workshop instance
 

Detailed Description

Base class for all grading evaluation subplugins.

Member Function Documentation

◆ delete_instance()

static workshop_evaluation::delete_instance ( $workshopid)
static

Delete all data related to a given workshop module instance.

This is called from workshop_delete_instance().

Parameters
int$workshopidid of the workshop module instance being deleted
Return values
void

Reimplemented in workshop_best_evaluation.

◆ get_settings_form()

workshop_evaluation::get_settings_form ( moodle_url $actionurl = null)

Returns an instance of the form to provide evaluation settings.

This is called by view.php (to display) and aggregate.php (to process and dispatch). It returns the basic form with just the submit button by default. Evaluators may extend or overwrite the default form to include some custom settings.

Return values
workshop_evaluation_settings_form

Reimplemented in workshop_best_evaluation.

◆ update_grading_grades()

workshop_evaluation::update_grading_grades ( stdClass $settings,
$restrict = null )
abstract

Calculates grades for assessment and updates 'gradinggrade' fields in 'workshop_assessments' table.

Parameters
stdClass$settingssettings for this round of evaluation
null | int | array$restrictif null, update all reviewers, otherwise update just grades for the given reviewers(s)

The documentation for this class was generated from the following file: