Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
backup_assignment_offline_subplugin Class Reference

backup subplugin class that provides the necessary information needed to backup one assignment->offline subplugin. More...

Inheritance diagram for backup_assignment_offline_subplugin:
backup_subplugin

Public Member Functions

 define_subplugin_structure ($connectionpoint)
 

Protected Member Functions

 define_assignment_subplugin_structure ()
 Returns the subplugin information to attach at assignment element.
 
 define_submission_subplugin_structure ()
 Returns the subplugin information to attach at submission element.
 
 get_recommended_name ()
 Simple helper function that suggests one name for the main nested element in subplugins It's not mandatory to use it but recommended ;-)
 
 get_setting_value ($name)
 Returns the value of one (task/plan) setting.
 
 get_subplugin_element ($final_elements=null, $conditionparam=null, $conditionvalue=null)
 Factory method that will return one backup_subplugin_element (backup_optigroup_element) with its name automatically calculated, based one the subplugin being handled (type, name)
 

Protected Attributes

 $connectionpoint
 
 $optigroup
 
 $step
 
 $subpluginname
 
 $subplugintype
 
 $task
 

Detailed Description

backup subplugin class that provides the necessary information needed to backup one assignment->offline subplugin.

Note: Offline assignments really haven't any special subplugin information to backup/restore, hence code below is skipped (return false) but it's a good example of sublugins supported at different elements (assignment and submission) and conditions


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