1441 |
ariadna |
1 |
# core_badges (subsystem) Upgrade notes
|
|
|
2 |
|
|
|
3 |
## 5.0
|
|
|
4 |
|
|
|
5 |
### Added
|
|
|
6 |
|
|
|
7 |
- Added fields `courseid` and `coursefullname` to `badgeclass_exporter`, which is used in the return structure of external function `core_badges_get_badge`.
|
|
|
8 |
|
|
|
9 |
For more information see [MDL-83026](https://tracker.moodle.org/browse/MDL-83026)
|
|
|
10 |
- Added field `coursefullname` to `user_badge_exporter`, which is used in the return structure of external functions `core_badges_get_user_badge_by_hash` and `core_badges_get_user_badges`.
|
|
|
11 |
|
|
|
12 |
For more information see [MDL-83026](https://tracker.moodle.org/browse/MDL-83026)
|
|
|
13 |
- The class in badges/lib/bakerlib.php has been moved to core_badges\png_metadata_handler. If you've extended or directly used the old bakerlib.php, you'll need to update your code to use the new namespaced class.
|
|
|
14 |
|
|
|
15 |
For more information see [MDL-83886](https://tracker.moodle.org/browse/MDL-83886)
|
|
|
16 |
|
|
|
17 |
### Removed
|
|
|
18 |
|
|
|
19 |
- The following previously deprecated renderer methods have been removed:
|
|
|
20 |
|
|
|
21 |
* `print_badge_table_actions`
|
|
|
22 |
* `render_badge_management`
|
|
|
23 |
|
|
|
24 |
For more information see [MDL-79162](https://tracker.moodle.org/browse/MDL-79162)
|
|
|
25 |
- The fields imageauthorname, imageauthoremail, and imageauthorurl have been removed from badges due to confusion and their absence from the official specification. These fields also do not appear in OBv3.0. Additionally, the image_author_json.php file has been removed as it is no longer needed.
|
|
|
26 |
|
|
|
27 |
For more information see [MDL-83909](https://tracker.moodle.org/browse/MDL-83909)
|
|
|
28 |
|
|
|
29 |
## 4.5
|
|
|
30 |
|
|
|
31 |
### Added
|
|
|
32 |
|
|
|
33 |
- The following new webservices have been added:
|
|
|
34 |
|
|
|
35 |
- `core_badges_enable_badges`
|
|
|
36 |
|
|
|
37 |
- `core_badges_disable_badges`
|
|
|
38 |
|
|
|
39 |
For more information see [MDL-82168](https://tracker.moodle.org/browse/MDL-82168)
|
|
|
40 |
|
|
|
41 |
### Changed
|
|
|
42 |
|
|
|
43 |
- New fields have been added to the return structure of the `core_badges_get_user_badge_by_hash` and `core_badges_get_user_badges` external functions:
|
|
|
44 |
- `recipientid`: The ID of the user who received the badge.
|
|
|
45 |
- `recipientfullname`: The full name of the user who received the badge.
|
|
|
46 |
|
|
|
47 |
For more information see [MDL-82742](https://tracker.moodle.org/browse/MDL-82742)
|
|
|
48 |
|
|
|
49 |
### Deprecated
|
|
|
50 |
|
|
|
51 |
- The `badges/newbadge.php` page has been deprecated and merged with `badges/edit.php`. Please, use `badges/edit.php` instead.
|
|
|
52 |
|
|
|
53 |
For more information see [MDL-43938](https://tracker.moodle.org/browse/MDL-43938)
|
|
|
54 |
- The `OPEN_BADGES_V1` constant is deprecated and should not be used anymore.
|
|
|
55 |
|
|
|
56 |
For more information see [MDL-70983](https://tracker.moodle.org/browse/MDL-70983)
|
|
|
57 |
- The `course_badges` systemreport has been deprecated and merged with the badges systemreport. Please, use the badges systemreport instead.
|
|
|
58 |
|
|
|
59 |
For more information see [MDL-82503](https://tracker.moodle.org/browse/MDL-82503)
|
|
|
60 |
- The `$showmanage` parameter to the `\core_badges\output\standard_action_bar` constructor has been deprecated and should not be used anymore.
|
|
|
61 |
|
|
|
62 |
For more information see [MDL-82503](https://tracker.moodle.org/browse/MDL-82503)
|
|
|
63 |
- The `badges/view.php` page has been deprecated and merged with `badges/index.php`. Please, use `badges/index.php` instead.
|
|
|
64 |
|
|
|
65 |
For more information see [MDL-82503](https://tracker.moodle.org/browse/MDL-82503)
|
|
|
66 |
|
|
|
67 |
### Removed
|
|
|
68 |
|
|
|
69 |
- Final removal of `BADGE_BACKPACKAPIURL` and `BADGE_BACKPACKWEBURL` constants.
|
|
|
70 |
|
|
|
71 |
For more information see [MDL-70983](https://tracker.moodle.org/browse/MDL-70983)
|