Merge branch 'MDL-50642_28' of https://github.com/ecampbell/moodle into MOODLE_28_STABLE
[moodle.git] / availability / upgrade.txt
blob1d2dc4622b649ac1754cf237a309452ec3337252
1 This files describes API changes in /availability/*.
3 The information here is intended only for developers.
5 === 2.8 ===
7 * There is a new API function in the info_module/info_section objects (and
8   related functions in internal API): get_user_list_sql. This returns SQL code
9   that does roughly the same as filter_user_list to return a list of users who
10   should be shown as having access to the module or section.
12 * Any third-party availability plugins which return true to
13   is_applied_to_user_lists (and therefore previously implemented
14   filter_user_list) should now also implement get_user_list_sql. If not
15   implemented, a debugging warning will occur when anybody calls
16   get_user_list_sql if the affected plugin is in use, and that user list will
17   not be filtered by the plugin.