Moodle release 4.0.3
[moodle.git] / user / upgrade.txt
blob442bf5a16e2f8cf6190d14a1720606185b8e9f0f
1 This files describes API changes for code that uses the user API.
3 === 4.0 ===
5 * External function core_user_external::update_users() will now fail on a per user basis. Previously if one user
6   update failed all users in the operation would fail.
7 * External function core_user_external::update_users() now returns an error code and message to why a user update
8   action failed.
9 * New method `core_user\fields::get_sql_fullname` for retrieving user fullname format in SQL statement
10 * The `profile_get_custom_field_data_by_shortname` method now accepts an optional parameter to determine whether
11   to use case-sensitive matching of the profile field shortname or not (default true)
13 === 3.11 ===
15 * Added new core_user/form_user_selector JS module that can be used as the 'ajax' handler for the autocomplete form
16   element implementing the user selector.
17 * Added new external function core_user_external::search_identity(). The main purpose of this external function is to
18   provide data for asynchronous user selectors and similar widgets. It allows to search users matching the given query
19   in their name or other available identity fields.
21 === 3.9 ===
23 * The unified filter has been replaced by the participants filter. The following have therefore been deprecated:
24   * Library functions:
25     * user_get_participants_sql
26     * user_get_total_participants
27     * user_get_participants
28   * Unified filter renderer (core_user_renderer::unified_filter)
29   * Unified filter renderable (\core_user\output\unified_filter)
30   * Unified filter JavaScript (core_user/unified_filter.js and core_user/unified_filter_datasource.js)
31   * Unified filter template (unified_filter.mustache)
33 === 3.6 ===
35 * The following functions have been finally deprecated and can not be used anymore:
36   * useredit_update_picture()
37 * core_user_external::update_user_preferences() now allows to unset existing preferences values.
38   If the preference value field is not set, the preference will be unset.