1441 |
ariadna |
1 |
# core_backup (subsystem) Upgrade notes
|
|
|
2 |
|
|
|
3 |
## 5.0
|
|
|
4 |
|
|
|
5 |
### Added
|
|
|
6 |
|
|
|
7 |
- Added several hooks to the restore process to
|
|
|
8 |
|
|
|
9 |
1. Hook to allow extra settings to be defined for the course restore process.
|
|
|
10 |
2. Hook to allow adding extra fields to the copy course form.
|
|
|
11 |
3. Hook used by `copy_helper::process_formdata()` to expand the list of required fields.
|
|
|
12 |
4. Hook used to allow interaction with the copy task, before the actual task execution takes place.
|
|
|
13 |
|
|
|
14 |
Other changes include
|
|
|
15 |
1. `base_task::add_setting()` is now public to allow hook callbacks to add settings.
|
|
|
16 |
2. Settings are now added to the data sent to the course_restored event.
|
|
|
17 |
|
|
|
18 |
For more information see [MDL-83479](https://tracker.moodle.org/browse/MDL-83479)
|
|
|
19 |
|
|
|
20 |
### Removed
|
|
|
21 |
|
|
|
22 |
- Remove all MODE_HUB related code.
|
|
|
23 |
|
|
|
24 |
For more information see [MDL-66873](https://tracker.moodle.org/browse/MDL-66873)
|
|
|
25 |
|
|
|
26 |
## 4.5
|
|
|
27 |
|
|
|
28 |
### Removed
|
|
|
29 |
|
|
|
30 |
- The `\core_backup\copy\copy` class has been deprecated and removed. Please use `\copy_helper` instead.
|
|
|
31 |
|
|
|
32 |
For more information see [MDL-75022](https://tracker.moodle.org/browse/MDL-75022)
|
|
|
33 |
- The following methods in the `\base_controller` class have been removed:
|
|
|
34 |
|
|
|
35 |
| Method | Replacement |
|
|
|
36 |
| --- | --- |
|
|
|
37 |
| `\base_controller::set_copy()` | Use a restore controller for storing copy information instead. |
|
|
|
38 |
| `\base_controller::get_copy()` | `\restore_controller::get_copy()` |
|
|
|
39 |
|
|
|
40 |
For more information see [MDL-75025](https://tracker.moodle.org/browse/MDL-75025)
|