Merge branch 'MDL-79498-402' of https://github.com/junpataleta/moodle into MOODLE_402...
[moodle.git] / group / upgrade.txt
blob215fedf2ef4719a18bce410e17c1b7e0a0e12786
1 This files describes API changes in /group/*,
2 information provided here is intended especially for developers.
4 === 4.2.1 ===
5 * The following external methods now return group names correctly formatted:
6   - `core_group_get_groups`
7   - `core_group_get_course_groups`
8   - `core_group_get_course_user_groups`
9   - `core_group_get_activity_allowed_groups`
10 * groups_get_members_join() now includes visibility checks for group memberships.
11 * \core_group\visibility::sql_member_visibility_where() no longer prefixes the returned WHERE statement with AND, to
12   give the calling code greater flexibility about how to use it.
14 === 4.2 ===
15 * `\core_group\visibility` class added to support new `visibility` field in group records. This holds the visibility constants
16   and helper functions for applying visibility restrictions when querying groups or group members in the database.
17 * Changes to the group form to support visibility features:
18   - New `visibility` field.
19   - New `participation` field.
20   - `participation` and `enablemessaging` fields are disabled (default: false) when `visibility` is set
21     to `visibility::OWN` or `visibility::NONE`.
22 * The following externallib functions now accept `visibility` and `participation` as optional parameters:
23   - create_groups()
24   - update_groups()
25 * The following externallib functions now also return `visibility` and `participation` fields in their responses:
26   - create_groups()
27   - get_groups()
28   - get_course_groups()
30 === 3.11 ===
32 * The groups do not support 'hidepicture' any more, and so the column 'hidepicture'
33   from the table {groups} has be dropped.