Commit | Line | Data |
---|---|---|
e922fe23 PS |
1 | This files describes API changes in /enrol/* - plugins, |
2 | information provided here is intended especially for developers. | |
3 | ||
ee362526 | 4 | |
a2dd56d2 PS |
5 | === 2.4 === |
6 | ||
7 | required changes in code: | |
8 | * use role_get_name() or role_fix_names() if you need any role names, using role.name | |
9 | directly from database is not correct any more | |
7a7b8a1f PS |
10 | * new restore support: ENROL_RESTORE_EXACT, ENROL_RESTORE_NOUSERS |
11 | and ENROL_RESTORE_CLASS were removed, implement new restore_* plugin methods instead | |
7881024e | 12 | * new support for protected group membership linked to enrol instance |
a2dd56d2 | 13 | |
005e57a2 PS |
14 | other changes: |
15 | * course enrolment manager now works with disabled plugins too | |
16 | ||
a2dd56d2 | 17 | |
e922fe23 PS |
18 | === 2.2 === |
19 | ||
20 | required changes in code: | |
21 | * load_temp_role() is deprecated, use load_temp_course_role() instead, temp role not loaded | |
22 | * remove_temp_role() is deprecated, use remove_temp_course_roles() instead | |
358fb4dc | 23 | * 'user_unenrol_modified' event was renamed to 'user_enrol_modified' |
ee362526 PS |
24 | |
25 | ||
26 | === 2.0 === | |
27 | ||
28 | required changes in code: | |
29 | * enrolment plugins need to be rewritten to use new API - see inline phpdocs and official plugins |