MDL-37184 refactor enrolment editing code to be shared by plugins
[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
a2dd56d2
PS
5=== 2.4 ===
6
7required 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
a2dd56d2 12
8c04252c 13other changes and new features:
005e57a2 14* course enrolment manager now works with disabled plugins too
8c04252c
PS
15* new support for protected group membership linked to enrol instance
16* new support for expiry notifications - see enrol_plugin::send_expiry_notifications() method
005e57a2 17
a2dd56d2 18
e922fe23
PS
19=== 2.2 ===
20
21required changes in code:
22* load_temp_role() is deprecated, use load_temp_course_role() instead, temp role not loaded
23* remove_temp_role() is deprecated, use remove_temp_course_roles() instead
358fb4dc 24* 'user_unenrol_modified' event was renamed to 'user_enrol_modified'
ee362526
PS
25
26
27=== 2.0 ===
28
29required changes in code:
30* enrolment plugins need to be rewritten to use new API - see inline phpdocs and official plugins