Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.0.x will end 8 May 2023 (12 months).
  • Bug fixes for security issues in 4.0.x will end 13 November 2023 (18 months).
  • PHP version: minimum PHP 7.3.0 Note: the minimum PHP version has increased since Moodle 3.10. PHP 7.4.x is also supported.

(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: 0 times
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