Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
restore_prechecks_helper Class Reference

Non instantiable helper class providing support for restore prechecks. More...

Static Public Member Functions

static execute_prechecks (restore_controller $controller, $droptemptablesafter=false)
 Entry point for all the prechecks to be performed before restore. More...
 

Detailed Description

Non instantiable helper class providing support for restore prechecks.

This class contains various prechecks to be performed before executing the restore plan. Its entry point is execute_prechecks() that will call various stuff. At the end, it will return one array(), if empty all the prechecks have passed ok. If not empty, you'll find 1/2 elements in the array, warnings and errors, each one containing one description of the problem. Warnings aren't stoppers so the restore execution can continue after displaying them. In the other side, if errors are returned then restore execution cannot continue

TODO: Finish phpdocs

Member Function Documentation

◆ execute_prechecks()

static restore_prechecks_helper::execute_prechecks ( restore_controller  $controller,
  $droptemptablesafter = false 
)
static

Entry point for all the prechecks to be performed before restore.

Returns empty array or warnings/errors array


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