Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

(no description)

Copyright: 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 216 lines (10 kb)
Included or required:0 times
Referenced: 1 time
Includes or requires: 0 files

Defines 2 classes

restore_prechecks_helper:: (1 method):
  execute_prechecks()

restore_prechecks_helper_exception:: (1 method):
  __construct()


Class: restore_prechecks_helper  - X-Ref

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
execute_prechecks(restore_controller $controller, $droptemptablesafter = false)   X-Ref
Entry point for all the prechecks to be performed before restore

Returns empty array or warnings/errors array

Class: restore_prechecks_helper_exception  - X-Ref

__construct($errorcode, $a=NULL, $debuginfo=null)   X-Ref
No description