Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Files | Namespaces | Classes | Functions | Variables
workshopform_comments

Files

file  assessment_form.php
 This file defines an mform to assess a submission by comments grading strategy.
 
file  backup_workshopform_comments_subplugin.class.php
 
file  edit_form.php
 This file defines an mform to edit comments 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
 This file defines a class with comments grading strategy logic.
 
file  lib.php
 Provides support for the conversion of moodle1 backup to the moodle2 format.
 
file  provider.php
 Provides the class workshopform_comments\privacy\provider.
 
file  restore_workshopform_comments_subplugin.class.php
 
file  upgrade.php
 Keeps track of upgrades to the workshop comments grading strategy.
 
file  version.php
 Defines the version of workshop comments grading strategy subplugin.
 

Namespaces

 workshopform_comments\privacy
  
 

Classes

class  backup_workshopform_comments_subplugin
 Provides the information to backup comments grading strategy information. More...
 
class  moodle1_workshopform_comments_handler
 Conversion handler for the comments grading strategy data. More...
 
class  restore_workshopform_comments_subplugin
 restore subplugin class that provides the necessary information needed to restore one workshopform_comments subplugin. More...
 
class  workshop_comments_assessment_form
 Class representing a form for assessing submissions by comments grading strategy. More...
 
class  workshop_comments_strategy
 Accumulative grading strategy logic. More...
 
class  workshop_edit_comments_strategy_form
 Class for editing comments grading strategy forms. More...
 
class  workshopform_comments\privacy\provider
 Privacy API implementation for the Comments grading strategy. More...
 

Functions

 workshopform_comments_pluginfile ($course, $cm, $context, $filearea, array $args, $forcedownload, array $options=array())
 
 workshopform_comments_upgrade_element (stdclass $old, $newworkshopid)
 Transforms a given record from workshop_elements_old into an object to be saved into workshopform_comments. More...
 
 xmldb_workshopform_comments_install ()
 Post installation procedure.
 
 xmldb_workshopform_comments_upgrade ($oldversion)
 Performs upgrade of the database structure and data. More...
 

Variables

$plugin component = 'workshopform_comments'
 
$plugin requires = 2019111200
 
$plugin version = 2019111800
 

Detailed Description

Function Documentation

◆ workshopform_comments_upgrade_element()

workshopform_comments_upgrade_element ( stdclass  $old,
  $newworkshopid 
)

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

Parameters
stdClass$oldlegacy record from workshop_elements_old
int$newworkshopidid of the new workshop instance that replaced the previous one
Return values
stdclassto be saved in workshopform_comments

◆ xmldb_workshopform_comments_upgrade()

xmldb_workshopform_comments_upgrade (   $oldversion)

Performs upgrade of the database structure and data.

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