MDL-31484 backup - repeated restores with anonymised users now works correctly
[moodle.git] / backup / util / includes / restore_includes.php
CommitLineData
fbc2778d
EL
1<?php
2
3// This file is part of Moodle - http://moodle.org/
4//
5// Moodle is free software: you can redistribute it and/or modify
6// it under the terms of the GNU General Public License as published by
7// the Free Software Foundation, either version 3 of the License, or
8// (at your option) any later version.
9//
10// Moodle is distributed in the hope that it will be useful,
11// but WITHOUT ANY WARRANTY; without even the implied warranty of
12// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13// GNU General Public License for more details.
14//
15// You should have received a copy of the GNU General Public License
16// along with Moodle. If not, see <http://www.gnu.org/licenses/>.
17
18/**
19 * @package moodlecore
20 * @subpackage backup-includes
21 * @copyright 2010 onwards Eloy Lafuente (stronk7) {@link http://stronk7.com}
22 * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
23 */
24
25// Prevent direct access to this file
26if (!defined('MOODLE_INTERNAL')) {
27 die('Direct access to this script is forbidden.');
28}
29
30// Include all the backup needed stuff
31require_once($CFG->dirroot . '/backup/util/interfaces/checksumable.class.php');
32require_once($CFG->dirroot . '/backup/util/interfaces/loggable.class.php');
33require_once($CFG->dirroot . '/backup/util/interfaces/executable.class.php');
5b457d26 34require_once($CFG->dirroot . '/backup/util/interfaces/processable.class.php');
c3ea499d 35require_once($CFG->dirroot . '/backup/backup.class.php');
482aac65 36require_once($CFG->dirroot . '/backup/util/structure/restore_path_element.class.php');
1d8066e2 37require_once($CFG->dirroot . '/backup/util/helper/backup_anonymizer_helper.class.php');
2df0f295 38require_once($CFG->dirroot . '/backup/util/helper/backup_file_manager.class.php');
c3ea499d 39require_once($CFG->dirroot . '/backup/util/helper/restore_prechecks_helper.class.php');
fbc2778d 40require_once($CFG->dirroot . '/backup/util/helper/restore_moodlexml_parser_processor.class.php');
482aac65
EL
41require_once($CFG->dirroot . '/backup/util/helper/restore_inforef_parser_processor.class.php');
42require_once($CFG->dirroot . '/backup/util/helper/restore_users_parser_processor.class.php');
71a50b13 43require_once($CFG->dirroot . '/backup/util/helper/restore_roles_parser_processor.class.php');
41941110 44require_once($CFG->dirroot . '/backup/util/helper/restore_questions_parser_processor.class.php');
482aac65 45require_once($CFG->dirroot . '/backup/util/helper/restore_structure_parser_processor.class.php');
5b457d26
EL
46require_once($CFG->dirroot . '/backup/util/helper/restore_decode_rule.class.php');
47require_once($CFG->dirroot . '/backup/util/helper/restore_decode_content.class.php');
48require_once($CFG->dirroot . '/backup/util/helper/restore_decode_processor.class.php');
0f66aced
EL
49require_once($CFG->dirroot . '/backup/util/helper/restore_logs_processor.class.php');
50require_once($CFG->dirroot . '/backup/util/helper/restore_log_rule.class.php');
fbc2778d 51require_once($CFG->dirroot . '/backup/util/xml/parser/progressive_parser.class.php');
fbc2778d
EL
52require_once($CFG->dirroot . '/backup/util/output/output_controller.class.php');
53require_once($CFG->dirroot . '/backup/util/dbops/backup_dbops.class.php');
54require_once($CFG->dirroot . '/backup/util/dbops/restore_dbops.class.php');
55require_once($CFG->dirroot . '/backup/util/dbops/backup_controller_dbops.class.php');
56require_once($CFG->dirroot . '/backup/util/dbops/restore_controller_dbops.class.php');
57require_once($CFG->dirroot . '/backup/util/checks/restore_check.class.php');
58require_once($CFG->dirroot . '/backup/util/loggers/base_logger.class.php');
59require_once($CFG->dirroot . '/backup/util/loggers/error_log_logger.class.php');
60require_once($CFG->dirroot . '/backup/util/loggers/file_logger.class.php');
61require_once($CFG->dirroot . '/backup/util/loggers/database_logger.class.php');
62require_once($CFG->dirroot . '/backup/util/loggers/output_indented_logger.class.php');
63require_once($CFG->dirroot . '/backup/util/factories/backup_factory.class.php');
64require_once($CFG->dirroot . '/backup/util/factories/restore_factory.class.php');
65require_once($CFG->dirroot . '/backup/util/helper/backup_helper.class.php');
66require_once($CFG->dirroot . '/backup/util/helper/backup_general_helper.class.php');
67require_once($CFG->dirroot . '/backup/util/settings/setting_dependency.class.php');
68require_once($CFG->dirroot . '/backup/util/settings/base_setting.class.php');
69require_once($CFG->dirroot . '/backup/util/settings/backup_setting.class.php');
70require_once($CFG->dirroot . '/backup/util/settings/root/root_backup_setting.class.php');
71require_once($CFG->dirroot . '/backup/util/settings/activity/activity_backup_setting.class.php');
72require_once($CFG->dirroot . '/backup/util/settings/section/section_backup_setting.class.php');
73require_once($CFG->dirroot . '/backup/util/settings/course/course_backup_setting.class.php');
74require_once($CFG->dirroot . '/backup/util/plan/base_plan.class.php');
75require_once($CFG->dirroot . '/backup/util/plan/restore_plan.class.php');
76require_once($CFG->dirroot . '/backup/util/plan/base_task.class.php');
77require_once($CFG->dirroot . '/backup/util/plan/restore_task.class.php');
78require_once($CFG->dirroot . '/backup/util/plan/base_step.class.php');
79require_once($CFG->dirroot . '/backup/util/plan/restore_step.class.php');
482aac65 80require_once($CFG->dirroot . '/backup/util/plan/restore_structure_step.class.php');
fbc2778d
EL
81require_once($CFG->dirroot . '/backup/util/plan/restore_execution_step.class.php');
82require_once($CFG->dirroot . '/backup/moodle2/restore_plan_builder.class.php');
83require_once($CFG->dirroot . '/backup/controller/restore_controller.class.php');
785d6603
SH
84require_once($CFG->dirroot . '/backup/util/ui/base_moodleform.class.php');
85require_once($CFG->dirroot . '/backup/util/ui/base_ui.class.php');
86require_once($CFG->dirroot . '/backup/util/ui/base_ui_stage.class.php');
fbc2778d 87require_once($CFG->dirroot . '/backup/util/ui/backup_ui_setting.class.php');
785d6603
SH
88require_once($CFG->dirroot . '/backup/util/ui/restore_ui_stage.class.php');
89require_once($CFG->dirroot . '/backup/util/ui/restore_ui.class.php');
90require_once($CFG->dirroot . '/backup/util/ui/restore_moodleform.class.php');
3acc9b81 91require_once($CFG->dirroot . '/backup/util/ui/restore_ui_components.php');
fbc2778d
EL
92
93// And some moodle stuff too
08edad78
EL
94require_once($CFG->dirroot . '/tag/lib.php');
95require_once($CFG->dirroot . '/lib/gradelib.php');
96require_once($CFG->dirroot . '/lib//questionlib.php');
97require_once($CFG->dirroot . '/course/lib.php');
fe213bc0 98require_once ($CFG->dirroot . '/blocks/moodleblock.class.php');