MDL-40127 Enrolments: Added unit test
[moodle.git] / enrol / upgrade.txt
CommitLineData
e922fe23
PS
1This files describes API changes in /enrol/* - plugins,
2information provided here is intended especially for developers.
3
ee362526 4
59e7cc03
PS
5=== 2.5 ===
6
7* plugins may use general enrol/editenrolment.php page to let users edit
8 enrolments manually
ef8a733a 9* new support for grade recovery in enrol_plugin::enrol_user() method
59e7cc03 10
a2dd56d2
PS
11=== 2.4 ===
12
13required changes in code:
14* use role_get_name() or role_fix_names() if you need any role names, using role.name
15 directly from database is not correct any more
7a7b8a1f
PS
16* new restore support: ENROL_RESTORE_EXACT, ENROL_RESTORE_NOUSERS
17 and ENROL_RESTORE_CLASS were removed, implement new restore_* plugin methods instead
a2dd56d2 18
8c04252c 19other changes and new features:
005e57a2 20* course enrolment manager now works with disabled plugins too
8c04252c
PS
21* new support for protected group membership linked to enrol instance
22* new support for expiry notifications - see enrol_plugin::send_expiry_notifications() method
005e57a2 23
a2dd56d2 24
e922fe23
PS
25=== 2.2 ===
26
27required changes in code:
28* load_temp_role() is deprecated, use load_temp_course_role() instead, temp role not loaded
29* remove_temp_role() is deprecated, use remove_temp_course_roles() instead
358fb4dc 30* 'user_unenrol_modified' event was renamed to 'user_enrol_modified'
ee362526
PS
31
32
33=== 2.0 ===
34
35required changes in code:
ef8a733a 36* enrolment plugins need to be rewritten to use new API - see inline phpdocs and official plugins