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

Files

file  assessment_form.php
 This file defines an mform to assess a submission by accumulative grading strategy.
 
file  backup_workshopform_accumulative_subplugin.class.php
 
file  edit_form.php
 This file defines an mform to edit accumulative 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 accumulative grading strategy logic.
 
file  provider.php
 Provides the class workshopform_accumulative::privacy::provider.
 
file  restore_workshopform_accumulative_subplugin.class.php
 
file  upgrade.php
 Keeps track of upgrades to the workshop accumulative grading strategy.
 
file  version.php
 Defines the version of workshop accumulative grading strategy subplugin.
 

Namespaces

namespace  workshopform_accumulative\privacy
  
 

Classes

class  backup_workshopform_accumulative_subplugin
 Provides the information to backup accumulative grading strategy information. More...
 
class  moodle1_workshopform_accumulative_handler
 Conversion handler for the accumulative grading strategy data. More...
 
class  restore_workshopform_accumulative_subplugin
 restore subplugin class that provides the necessary information needed to restore one workshopform_accumulative subplugin. More...
 
class  workshop_accumulative_assessment_form
 Class representing a form for assessing submissions by accumulative grading strategy. More...
 
class  workshop_accumulative_strategy
 Accumulative grading strategy logic. More...
 
class  workshop_edit_accumulative_strategy_form
 Class for editing accumulative grading strategy forms. More...
 
class  workshopform_accumulative\privacy\provider
 Privacy API implementation for the Accumulative grading strategy. More...
 

Functions

 workshopform_accumulative_pluginfile ($course, $cm, $context, $filearea, array $args, $forcedownload, array $options=array())
 
 workshopform_accumulative_upgrade_element (stdclass $old, array $newscaleids, $newworkshopid)
 Transforms a given record from workshop_elements_old into an object to be saved into workshopform_accumulative. More...
 
 xmldb_workshopform_accumulative_install ()
 Post installation procedure.
 
 xmldb_workshopform_accumulative_upgrade ($oldversion)
 Performs upgrade of the database structure and data. More...
 

Variables

 $plugin = 2020060900
 
$plugin component = 'workshopform_accumulative'
 
$plugin version = 2020061500
 

Detailed Description

Function Documentation

◆ workshopform_accumulative_upgrade_element()

workshopform_accumulative_upgrade_element ( stdclass  $old,
array  $newscaleids,
  $newworkshopid 
)

Transforms a given record from workshop_elements_old into an object to be saved into workshopform_accumulative.

Parameters
stdClass$oldlegacy record from workshop_elements_old
array$newscaleidsmapping from old scale types into new standard ones
int$newworkshopidid of the new workshop instance that replaced the previous one
Return values
stdclassto be saved in workshopform_accumulative

◆ xmldb_workshopform_accumulative_upgrade()

xmldb_workshopform_accumulative_upgrade (   $oldversion)

Performs upgrade of the database structure and data.

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