Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
backup_step Class Reference

Abstract class defining the needed stuf for one backup step. More...

Inheritance diagram for backup_step:
base_step executable loggable backup_execution_step backup_structure_step create_and_clean_temp_stuff create_taskbasepath_directory drop_and_clean_temp_stuff imscc11_backup_convert imscc11_store_backup_file imscc11_zip_contents backup_activity_structure_step backup_assign_activity_structure_step backup_assignment_activity_structure_step backup_book_activity_structure_step backup_chat_activity_structure_step backup_choice_activity_structure_step backup_data_activity_structure_step backup_feedback_activity_structure_step backup_folder_activity_structure_step backup_forum_activity_structure_step backup_glossary_activity_structure_step backup_h5pactivity_activity_structure_step backup_imscp_activity_structure_step backup_label_activity_structure_step backup_lesson_activity_structure_step backup_lti_activity_structure_step backup_page_activity_structure_step backup_resource_activity_structure_step backup_scorm_activity_structure_step backup_survey_activity_structure_step backup_url_activity_structure_step backup_wiki_activity_structure_step backup_workshop_activity_structure_step

Public Member Functions

 __construct ($name, $task=null)
 Constructor - instantiates one object of this class. More...
 
 destroy ()
 Destroy all circular references. More...
 
 execute ()
 This function will perform all the actions necessary to achieve the execution of the plan/part/task. More...
 
 get_name ()
 
 log ($message, $level, $a=null, $depth=null, $display=false)
 This function will be responsible for handling the params, and to call to the corresponding logger->process() once all modifications in params have been performed. More...
 
 set_task ($task)
 

Protected Member Functions

 get_backupid ()
 
 get_basepath ()
 
 get_courseid ()
 
 get_logger ()
 
 get_setting ($name)
 
 get_setting_value ($name)
 
 get_settings ()
 Protected API starts here.
 
 setting_exists ($name)
 

Protected Attributes

 $name
 
 $task
 

Detailed Description

Abstract class defining the needed stuf for one backup step.

TODO: Finish phpdocs

Constructor & Destructor Documentation

◆ __construct()

backup_step::__construct (   $name,
  $task = null 
)

Constructor - instantiates one object of this class.

Reimplemented from base_step.

Member Function Documentation

◆ destroy()

base_step::destroy ( )
inherited

Destroy all circular references.

It helps PHP 5.2 a lot!

◆ execute()

executable::execute ( )
inherited

This function will perform all the actions necessary to achieve the execution of the plan/part/task.

Implemented in backup_activity_task, backup_section_task, restore_activity_task, restore_section_task, backup_execution_step, backup_plan, backup_structure_step, base_plan, base_task, restore_execution_step, restore_plan, and restore_structure_step.

◆ log()

base_step::log (   $message,
  $level,
  $a = null,
  $depth = null,
  $display = false 
)
inherited

This function will be responsible for handling the params, and to call to the corresponding logger->process() once all modifications in params have been performed.

Implements loggable.


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