diff --git a/.upgradenotes/MDL-64148-2024071508585319.yml b/.upgradenotes/MDL-64148-2024071508585319.yml index f1ffa3e6612..beb43dd3dec 100644 --- a/.upgradenotes/MDL-64148-2024071508585319.yml +++ b/.upgradenotes/MDL-64148-2024071508585319.yml @@ -2,5 +2,5 @@ issueNumber: MDL-64148 notes: core: - message: >- - Add `\core_user::get_name_placeholders()` to return an array of user name fields. + A new method, `\core_user::get_name_placeholders()`, has been added to return an array of user name fields. type: improved diff --git a/.upgradenotes/MDL-66151-2024090301594788.yml b/.upgradenotes/MDL-66151-2024090301594788.yml index fe90706b63b..0a846cc01f7 100644 --- a/.upgradenotes/MDL-66151-2024090301594788.yml +++ b/.upgradenotes/MDL-66151-2024090301594788.yml @@ -10,10 +10,10 @@ notes: `SessionHandlerInterface`, and override methods as required. The following methods in `\core\session\manager` have been deprecated: - | Old method name | New method name | - | --- | --- | - | `kill_all_sessions` | `destroy_all` | - | `kill_session` | `destroy` | - | `kill_sessions_for_auth_plugin` | `destroy_by_auth_plugin` | - | `kill_user_sessions` | `destroy_user_sessions` | + | Old method name | New method name | + | --- | --- | + | `kill_all_sessions` | `destroy_all` | + | `kill_session` | `destroy` | + | `kill_sessions_for_auth_plugin` | `destroy_by_auth_plugin` | + | `kill_user_sessions` | `destroy_user_sessions` | type: improved diff --git a/.upgradenotes/MDL-66903-2024070501430894.yml b/.upgradenotes/MDL-66903-2024070501430894.yml index ce397c67d00..3a42814b033 100644 --- a/.upgradenotes/MDL-66903-2024070501430894.yml +++ b/.upgradenotes/MDL-66903-2024070501430894.yml @@ -5,7 +5,7 @@ notes: The following classes have been renamed and now support autoloading. Existing classes are currently unaffected. - | Old class name | New class name | - | --- | --- | - | `\core_component` | `\core\component` | + | Old class name | New class name | + | --- | --- | + | `\core_component` | `\core\component` | type: improved diff --git a/.upgradenotes/MDL-67554-2024071602392599.yml b/.upgradenotes/MDL-67554-2024071602392599.yml index 8caa9da7f46..cb509bd78f1 100644 --- a/.upgradenotes/MDL-67554-2024071602392599.yml +++ b/.upgradenotes/MDL-67554-2024071602392599.yml @@ -2,7 +2,7 @@ issueNumber: MDL-67554 notes: tool_oauth2: - message: > - The `get_additional_login_parameters()` method now supports adding the + The `\core\oautuh2\client::get_additional_login_parameters()` method now supports adding the language code to the authentication request so that the OAuth2 login page matches the language in Moodle. type: improved diff --git a/.upgradenotes/MDL-70983-2024062810515930.yml b/.upgradenotes/MDL-70983-2024062810515930.yml index 34d5b37baa7..038ea53e0b9 100644 --- a/.upgradenotes/MDL-70983-2024062810515930.yml +++ b/.upgradenotes/MDL-70983-2024062810515930.yml @@ -1,7 +1,7 @@ issueNumber: MDL-70983 notes: core_badges: - - message: Final removal of `BADGE_BACKPACKAPIURL` and `BADGE_BACKPACKWEBURL`. + - message: Final removal of `BADGE_BACKPACKAPIURL` and `BADGE_BACKPACKWEBURL` constants. type: removed - message: The `OPEN_BADGES_V1` constant is deprecated and should not be used anymore. type: deprecated diff --git a/.upgradenotes/MDL-71326-2024082121203527.yml b/.upgradenotes/MDL-71326-2024082121203527.yml index cc3ee58506c..d5293584367 100644 --- a/.upgradenotes/MDL-71326-2024082121203527.yml +++ b/.upgradenotes/MDL-71326-2024082121203527.yml @@ -2,13 +2,12 @@ issueNumber: MDL-71326 notes: core: - message: >+ - - Final deprecation and removal of the following functions: - - `plagiarism_plugin::get_configs()` - - `plagiarism_plugin::get_file_results()` - - `plagiarism_plugin::update_status()`, please use `{plugin name}_before_standard_top_of_body_html` instead. - - Final deprecation and removal of `plagiarism_get_file_results()`. - Please use `plagiarism_get_links()` instead. - - Final deprecation and removal of `plagiarism_update_status()`. Please - use `{plugin name}_before_standard_top_of_body_html()` instead. + - The following methods have been finally deprecated and removed: + - `\plagiarism_plugin::get_configs()` + - `\plagiarism_plugin::get_file_results()` + - `\plagiarism_plugin::update_status()`, please use `{plugin name}_before_standard_top_of_body_html` instead. + - Final deprecation and removal of `\plagiarism_get_file_results()`. Please use `\plagiarism_get_links()` instead. + + - Final deprecation and removal of `\plagiarism_update_status()`. Please use `\{plugin name}_before_standard_top_of_body_html()` instead. type: deprecated diff --git a/.upgradenotes/MDL-71748-2024052002223792.yml b/.upgradenotes/MDL-71748-2024052002223792.yml index a1666caaa04..c1ceb9e4717 100644 --- a/.upgradenotes/MDL-71748-2024052002223792.yml +++ b/.upgradenotes/MDL-71748-2024052002223792.yml @@ -2,5 +2,5 @@ issueNumber: MDL-71748 notes: core: - message: > - The previously deprecated function `core_text::reset_caches()` has been removed and can no longer be used. + The previously deprecated function `\core_text::reset_caches()` has been removed and can no longer be used. type: removed diff --git a/.upgradenotes/MDL-71823-2024091304403638.yml b/.upgradenotes/MDL-71823-2024091304403638.yml index 60edfb8a886..bfb0ebb32a4 100644 --- a/.upgradenotes/MDL-71823-2024091304403638.yml +++ b/.upgradenotes/MDL-71823-2024091304403638.yml @@ -3,5 +3,5 @@ notes: core_user: - message: >- New `\core_user\hook\extend_user_menu` hook added to allow third party - plugin to extend the user menu navigation + plugins to extend the user menu navigation. type: improved diff --git a/.upgradenotes/MDL-72353-2024052002223792.yml b/.upgradenotes/MDL-72353-2024052002223792.yml index c321696d769..0afc3a9b4ce 100644 --- a/.upgradenotes/MDL-72353-2024052002223792.yml +++ b/.upgradenotes/MDL-72353-2024052002223792.yml @@ -2,5 +2,5 @@ issueNumber: MDL-72353 notes: report: - message: >- - The previously deprecated `report_helper::save_selected_report` method has been removed and can no longer be used + The previously deprecated `\core\report_helper::save_selected_report()` method has been removed and can no longer be used. type: removed diff --git a/.upgradenotes/MDL-72397-2024060512165928.yml b/.upgradenotes/MDL-72397-2024060512165928.yml index fdb69e86927..120282e0189 100644 --- a/.upgradenotes/MDL-72397-2024060512165928.yml +++ b/.upgradenotes/MDL-72397-2024060512165928.yml @@ -5,7 +5,7 @@ notes: Category lists are now generated by templates. The following classes have been deprecated: - - `question_category_list` + - `\qbank_managecategories\question_category_list` - - `question_category_list_item` + - `\qbank_managecategories\question_category_list_item` type: deprecated diff --git a/.upgradenotes/MDL-72397-2024073009145252.yml b/.upgradenotes/MDL-72397-2024073009145252.yml index 2a2c329ef47..029eadaa009 100644 --- a/.upgradenotes/MDL-72397-2024073009145252.yml +++ b/.upgradenotes/MDL-72397-2024073009145252.yml @@ -2,21 +2,27 @@ issueNumber: MDL-72397 notes: qbank_managecategories: - message: > - The methods in the `question_category_object` class that are still - required following this change have been split between - `\qbank_managecategories\question_categories` (for the parts used within - this plugin for display a list of categories) and - `\core_question\category_manager` (for the parts used for generate CRUD - operations on question categories, including outside of this plugin). - This will allow `question_category_object` to be deprecated, and avoids + The `\qbank_managecategories\question_category_object` class has been deprecated. + + Methods previously part of this class have been moved to either + + - `\qbank_managecategories\question_categories`, + for the parts used within this plugin for display a list of categories; or + + `\core_question\category_manager`, + for the parts used for generate CRUD operations on question categories, including outside of this plugin. + + This change will allow `\qbank_managecategories\question_category_object` to be deprecated, and avoids other parts of the system wishing to manipulate question categories from having to violate cross-component communication rules. type: changed - - message: > - The methods `question_is_only_child_of_top_category_in_context`, - `question_is_top_category` and `question_can_delete_cat` from - `qbank_managecategories\helper` class have been deprecated and moved to - the `\core_question\category_manager` class, minus the misleading - `question_` prefix. Following the creation of this class, it does not - make sense for them to live inside the `qbank_managecategories` plugin. + - message: | + The following methods of `\qbank_managecategories\helper`have been deprecated and moved to + `\core_question\category_manager`: + + | Method | Replacement | + | --- | --- | + | `question_is_only_child_of_top_category_in_context` | `\core_question\category_manager::is_only_child_of_top_category_in_context` | + | `question_is_top_category` | `\core_question\category_manager::is_top_category` | + | `question_can_delete_cat` | `\core_question\category_manager::can_delete_cat` | type: deprecated diff --git a/.upgradenotes/MDL-72397-2024073009194182.yml b/.upgradenotes/MDL-72397-2024073009194182.yml index 583da95448a..eaa9a489b33 100644 --- a/.upgradenotes/MDL-72397-2024073009194182.yml +++ b/.upgradenotes/MDL-72397-2024073009194182.yml @@ -2,16 +2,16 @@ issueNumber: MDL-72397 notes: qbank_managecategories: - message: > - `qbank_managecategories\question_category_object` is now completely + `\qbank_managecategories\question_category_object` is now completely deprecated. Its methods have either been migrated to - `qbank_managecategories\question_categories`, - `core_question\category_manager`, or are no longer used at all. + `\qbank_managecategories\question_categories`, + `\core_question\category_manager`, or are no longer used at all. type: deprecated core: - message: > - `moodle_list` and `list_item` were only used by + `\moodle_list` and `\list_item` were only used by `qbank_managecategories`, and these usages have been removed, so - these classes (and thus all of listlib.php) are now deprecated. + these classes, and the `lib/listlib.php` file have now been deprecated. This method was the only usage of the `QUESTION_PAGE_LENGTH` constant, which was defined in `question_category_object.php`, and so is also now deprecated. diff --git a/.upgradenotes/MDL-72424-2024062113465122.yml b/.upgradenotes/MDL-72424-2024062113465122.yml index 6061a35c82e..e2c31df848c 100644 --- a/.upgradenotes/MDL-72424-2024062113465122.yml +++ b/.upgradenotes/MDL-72424-2024062113465122.yml @@ -2,6 +2,6 @@ issueNumber: MDL-72424 notes: mod_feedback: - message: >- - The `feedback_check_is_switchrole` method has been deprecated as it - didn't work + The `\feedback_check_is_switchrole()` function has been deprecated as it + didn't work. type: deprecated diff --git a/.upgradenotes/MDL-72620-2024053011130162.yml b/.upgradenotes/MDL-72620-2024053011130162.yml index 8fd76baf65c..b8057ce5282 100644 --- a/.upgradenotes/MDL-72620-2024053011130162.yml +++ b/.upgradenotes/MDL-72620-2024053011130162.yml @@ -5,7 +5,7 @@ notes: The following previously deprecated methods have been removed and can no longer be used: - - `can_import_skydrive_files` + - `\repository_onedrive::can_import_skydrive_files()` - - `import_skydrive_files` + - `\repository_onedrive::import_skydrive_files()` type: removed diff --git a/.upgradenotes/MDL-72786-2024052421265765.yml b/.upgradenotes/MDL-72786-2024052421265765.yml index 24694d515df..b9b237a101b 100644 --- a/.upgradenotes/MDL-72786-2024052421265765.yml +++ b/.upgradenotes/MDL-72786-2024052421265765.yml @@ -5,7 +5,7 @@ notes: The following deprecated methods in `report_eventlist_list_generator` have been removed: - - `get_core_events_list()` + - `\report_eventlist_list_generator::get_core_events_list()` - - `get_non_core_event_list()` + - `\report_eventlist_list_generator::get_non_core_event_list()` type: deprecated diff --git a/.upgradenotes/MDL-73165-2024052002223792.yml b/.upgradenotes/MDL-73165-2024052002223792.yml index d866c76f677..dd90259088a 100644 --- a/.upgradenotes/MDL-73165-2024052002223792.yml +++ b/.upgradenotes/MDL-73165-2024052002223792.yml @@ -3,5 +3,5 @@ notes: core: - message: > The following previously deprecated methods have been removed and can no longer be used: - - `renderer_base::should_display_main_logo` + - `\renderer_base::should_display_main_logo()` type: removed diff --git a/.upgradenotes/MDL-73284-2024061908343534.yml b/.upgradenotes/MDL-73284-2024061908343534.yml index eae4d789805..fa164cebd50 100644 --- a/.upgradenotes/MDL-73284-2024061908343534.yml +++ b/.upgradenotes/MDL-73284-2024061908343534.yml @@ -1,5 +1,5 @@ issueNumber: MDL-73284 notes: core_message: - - message: Final deprecation `MESSAGE_DEFAULT_LOGGEDOFF` / `MESSAGE_DEFAULT_LOGGEDIN`. + - message: Final deprecation of the `MESSAGE_DEFAULT_LOGGEDOFF`, and `MESSAGE_DEFAULT_LOGGEDIN` constants. type: removed diff --git a/.upgradenotes/MDL-73976-2024053011201329.yml b/.upgradenotes/MDL-73976-2024053011201329.yml index e890893142b..d75bec8ac6f 100644 --- a/.upgradenotes/MDL-73976-2024053011201329.yml +++ b/.upgradenotes/MDL-73976-2024053011201329.yml @@ -2,6 +2,6 @@ issueNumber: MDL-73976 notes: core_course: - message: >- - The previously deprecated `print_course_request_buttons` method has been - removed and can no longer be used + The previously deprecated `\print_course_request_buttons()` method has been + removed and can no longer be used. type: removed diff --git a/.upgradenotes/MDL-74050-2024092502060743.yml b/.upgradenotes/MDL-74050-2024092502060743.yml index 921ff6c17b2..4c21956bfa3 100644 --- a/.upgradenotes/MDL-74050-2024092502060743.yml +++ b/.upgradenotes/MDL-74050-2024092502060743.yml @@ -4,5 +4,5 @@ notes: - message: > A new web service called `mod_assign_remove_submission` has been created to remove the submission for a specific user ID and assignment activity - ID + ID. type: improved diff --git a/.upgradenotes/MDL-74251-2024062716222581.yml b/.upgradenotes/MDL-74251-2024062716222581.yml index d33181fb69f..d73cc7338ca 100644 --- a/.upgradenotes/MDL-74251-2024062716222581.yml +++ b/.upgradenotes/MDL-74251-2024062716222581.yml @@ -3,5 +3,5 @@ notes: theme: - message: >- Removed all references to `iconhelp`, `icon-pre`, `icon-post`, `iconlarge`, and - `iconsort` classes + `iconsort` CSS classes. type: removed diff --git a/.upgradenotes/MDL-74484-2024052002223792.yml b/.upgradenotes/MDL-74484-2024052002223792.yml index 49ae26957a7..9598caa55be 100644 --- a/.upgradenotes/MDL-74484-2024052002223792.yml +++ b/.upgradenotes/MDL-74484-2024052002223792.yml @@ -1,5 +1,5 @@ issueNumber: MDL-74484 notes: core: - - message: Final deprecation of `print_error()`. Use `moodle_exception` instead. + - message: Final deprecation of `\print_error()`. Please use the `\moodle_exception` class instead. type: removed diff --git a/.upgradenotes/MDL-74581-2024052109492361.yml b/.upgradenotes/MDL-74581-2024052109492361.yml index b2c2744bdb1..89ab82c1943 100644 --- a/.upgradenotes/MDL-74581-2024052109492361.yml +++ b/.upgradenotes/MDL-74581-2024052109492361.yml @@ -4,6 +4,6 @@ notes: - message: > The following previously deprecated Behat step helper methods have been removed and can no longer be used: - - `behat_grade::select_in_gradebook_navigation_selector` - - `behat_grade::select_in_gradebook_tabs` + - `\behat_grade::select_in_gradebook_navigation_selector()` + - `\behat_grade::select_in_gradebook_tabs()` type: removed diff --git a/.upgradenotes/MDL-74583-2024053011024259.yml b/.upgradenotes/MDL-74583-2024053011024259.yml index 3b1f1bd7157..797986cedab 100644 --- a/.upgradenotes/MDL-74583-2024053011024259.yml +++ b/.upgradenotes/MDL-74583-2024053011024259.yml @@ -2,17 +2,17 @@ issueNumber: MDL-74583 notes: core_reportbuilder: - message: >- - Support for the following entity classes, renamed since 4.1, has now + Support for the following entity classes, renamed since 4.1, have now been removed completely: - - `core_admin\local\entities\task_log` + - `\core_admin\local\entities\task_log` - - `core_cohort\local\entities\cohort` + - `\core_cohort\local\entities\cohort` - - `core_cohort\local\entities\cohort_member` + - `\core_cohort\local\entities\cohort_member` - - `core_course\local\entities\course_category` + - `\core_course\local\entities\course_category` - - `report_configlog\local\entities\config_change` + - `\report_configlog\local\entities\config_change` type: removed diff --git a/.upgradenotes/MDL-74843-2024062023364909.yml b/.upgradenotes/MDL-74843-2024062023364909.yml index 871a40df6b8..b8d8b343367 100644 --- a/.upgradenotes/MDL-74843-2024062023364909.yml +++ b/.upgradenotes/MDL-74843-2024062023364909.yml @@ -1,5 +1,5 @@ issueNumber: MDL-74843 notes: core: - - message: 'Final deprecation of `\core\task\manager::ensure_adhoc_task_qos()`' + - message: 'Final deprecation of `\core\task\manager::ensure_adhoc_task_qos()`.' type: removed diff --git a/.upgradenotes/MDL-74939-2024053010552599.yml b/.upgradenotes/MDL-74939-2024053010552599.yml index 48c3e523f18..66a4ca4b200 100644 --- a/.upgradenotes/MDL-74939-2024053010552599.yml +++ b/.upgradenotes/MDL-74939-2024053010552599.yml @@ -2,7 +2,6 @@ issueNumber: MDL-74939 notes: core: - message: >- - Support for deprecated `\local\views\secondary` - block/activity namespace, for overriding secondary navigation, is now - entirely removed + Support for the deprecated block and activity namespaces `\local\views\secondary`, + which supported the overriding of secondary navigation, has now been entirely removed. type: removed diff --git a/.upgradenotes/MDL-75022-2024062111052809.yml b/.upgradenotes/MDL-75022-2024062111052809.yml index 13c3b66f8f6..0f0271cbe18 100644 --- a/.upgradenotes/MDL-75022-2024062111052809.yml +++ b/.upgradenotes/MDL-75022-2024062111052809.yml @@ -2,7 +2,5 @@ issueNumber: MDL-75022 notes: core_backup: - message: >- - Final deprecation and removal of `core_backup\copy\copy` in - `backup/util/ui/classes/copy.php`. Please use `copy_helper` from - `backup/util/helper/copy_helper.class.php` instead. + The `\core_backup\copy\copy` class has been deprecated and removed. Please use `\copy_helper` instead. type: removed diff --git a/.upgradenotes/MDL-75025-2024062015430029.yml b/.upgradenotes/MDL-75025-2024062015430029.yml index 124130efd54..307425aecfd 100644 --- a/.upgradenotes/MDL-75025-2024062015430029.yml +++ b/.upgradenotes/MDL-75025-2024062015430029.yml @@ -1,6 +1,11 @@ issueNumber: MDL-75025 notes: core_backup: - - message: 'Final deprecation of `base_controller::set_copy()`. Please use a restore - controller for storing copy information instead.' + - message: | + The following methods in the `\base_controller` class have been removed: + + | Method | Replacement | + | --- | --- | + | `\base_controller::set_copy()` | Use a restore controller for storing copy information instead. | + | `\base_controller::get_copy()` | `\restore_controller::get_copy()` | type: removed diff --git a/.upgradenotes/MDL-76690-2024052002223792.yml b/.upgradenotes/MDL-76690-2024052002223792.yml index 14c722276f6..0d7f3709bf2 100644 --- a/.upgradenotes/MDL-76690-2024052002223792.yml +++ b/.upgradenotes/MDL-76690-2024052002223792.yml @@ -3,6 +3,6 @@ notes: core_reportbuilder: - message: > The following previously deprecated local helper methods have been removed and can no longer be used: - - `audience::get_all_audiences_menu_types` - - `report::get_available_columns` + - `\core_reportbuilder\local\helpers\audience::get_all_audiences_menu_types()` + - `\core_reportbuilder\local\helpers\report::get_available_columns()` type: removed diff --git a/.upgradenotes/MDL-77167-2024062111140275.yml b/.upgradenotes/MDL-77167-2024062111140275.yml index 3c59dfa89e6..eec4853a3a7 100644 --- a/.upgradenotes/MDL-77167-2024062111140275.yml +++ b/.upgradenotes/MDL-77167-2024062111140275.yml @@ -1,5 +1,5 @@ issueNumber: MDL-77167 notes: core: - - message: Remove deprecation layer for YUI Events. The deprecation layer was introduced with MDL-70990 and MDL-72291. + - message: Remove deprecation layer for YUI JS Events. The deprecation layer was introduced with MDL-70990 and MDL-72291. type: removed diff --git a/.upgradenotes/MDL-78030-2024071101575428.yml b/.upgradenotes/MDL-78030-2024071101575428.yml index cfe0419f235..203925cab60 100644 --- a/.upgradenotes/MDL-78030-2024071101575428.yml +++ b/.upgradenotes/MDL-78030-2024071101575428.yml @@ -2,6 +2,7 @@ issueNumber: MDL-78030 notes: core_user: - message: >- - The `participants_search::get_total_participants_count()` is no longer - used since the total count can be obtained from `::get_participants()` + The `\core_user\table\participants_search::get_total_participants_count()` is no longer + used since the total count can be obtained from + `\core_user\table\participants_search::get_participants()`. type: deprecated diff --git a/.upgradenotes/MDL-78030-2024071102213324.yml b/.upgradenotes/MDL-78030-2024071102213324.yml index f1d19129b27..e76524bec5a 100644 --- a/.upgradenotes/MDL-78030-2024071102213324.yml +++ b/.upgradenotes/MDL-78030-2024071102213324.yml @@ -2,16 +2,16 @@ issueNumber: MDL-78030 notes: core: - message: | - Two new functions have been introduced in the \moodle_database class: - - `get_counted_records_sql()` - - `get_counted_recordset_sql()` + Two new functions have been introduced in the `\moodle_database` class: + - `\moodle_database::get_counted_records_sql()` + - `\moodle_database::get_counted_recordset_sql()` These methods are compatible with all databases. - They will check the current running database engine and apply the COUNT window function if it is supported, - otherwise, they will use the usual COUNT function. + They will check the current running database engine and apply the `COUNT` window function if it is supported, + otherwise, they will use the usual `COUNT` function. - The COUNT window function optimization is applied to the following databases: + The `COUNT` window function optimization is applied to the following databases: - PostgreSQL - MariaDB - Oracle diff --git a/.upgradenotes/MDL-78293-2024071102223792.yml b/.upgradenotes/MDL-78293-2024071102223792.yml index f61c0382e63..4af956af5a2 100644 --- a/.upgradenotes/MDL-78293-2024071102223792.yml +++ b/.upgradenotes/MDL-78293-2024071102223792.yml @@ -2,6 +2,9 @@ issueNumber: MDL-78293 notes: core_user: - message: > - The visibility of the methods: `check_access_for_dynamic_submission()` and `get_options()` - in `\core_user\form\private_files` has been changed from protected to public. + The visibility of the following methods have been increased to public: + + - `\core_user\form\private_files::check_access_for_dynamic_submission()` + + - `\core_user\form\private_files::get_options()` type: changed diff --git a/.upgradenotes/MDL-78662-2024070403384202.yml b/.upgradenotes/MDL-78662-2024070403384202.yml index 268851281f8..e08025359f2 100644 --- a/.upgradenotes/MDL-78662-2024070403384202.yml +++ b/.upgradenotes/MDL-78662-2024070403384202.yml @@ -2,6 +2,6 @@ issueNumber: MDL-78662 notes: core_question: - message: > - A new utility function `format_question_fragment` has been created so + A new utility function `\question_utils::format_question_fragment()` has been created so that question content can filter based on filters. type: improved diff --git a/.upgradenotes/MDL-78773-2024060309112838.yml b/.upgradenotes/MDL-78773-2024060309112838.yml index 068dec79db4..6f78b69190c 100644 --- a/.upgradenotes/MDL-78773-2024060309112838.yml +++ b/.upgradenotes/MDL-78773-2024060309112838.yml @@ -2,7 +2,7 @@ issueNumber: MDL-78773 notes: report: - message: > - The `report_helper::print_report_selector` method accepts an additional + The `\core\report_helper::print_report_selector()` method accepts a new `$additional`` argument for adding content to the tertiary navigation to align with the - report selector + report selector. type: changed diff --git a/.upgradenotes/MDL-79546-2024061414230136.yml b/.upgradenotes/MDL-79546-2024061414230136.yml index b71f6764ee0..0be6a29bcaf 100644 --- a/.upgradenotes/MDL-79546-2024061414230136.yml +++ b/.upgradenotes/MDL-79546-2024061414230136.yml @@ -1,7 +1,10 @@ issueNumber: MDL-79546 notes: quiz: - - message: >- - The functions `quiz_overview_report::regrade_attempts` and `regrade_batch_of_attempts` now - have a new optional parameter $slots to only regrade some slots in each attempt (default all). + - message: >+ + The following methods of the `quiz_overview_report` class now take a new optional `$slots` parameter used to only regrade some slots in each attempt (default all): + + - `\quiz_overview_report::regrade_attempts()` + + - `\quiz_overview_report::regrade_batch_of_attempts()` type: improved diff --git a/.upgradenotes/MDL-79628-2024081605501759.yml b/.upgradenotes/MDL-79628-2024081605501759.yml index 0545a38eff0..35a0d5838cf 100644 --- a/.upgradenotes/MDL-79628-2024081605501759.yml +++ b/.upgradenotes/MDL-79628-2024081605501759.yml @@ -2,6 +2,6 @@ issueNumber: MDL-79628 notes: core: - message: >- - The `navigation_cache` class now uses the Moodle Universal Cache (MUC) to store the navigation cache data instead of storing + The `\navigation_cache` class now uses the Moodle Universal Cache (MUC) to store the navigation cache data instead of storing it in the global `$SESSION` variable. type: fixed diff --git a/.upgradenotes/MDL-79628-2024081607154616.yml b/.upgradenotes/MDL-79628-2024081607154616.yml index 3275553a990..67ac5b25421 100644 --- a/.upgradenotes/MDL-79628-2024081607154616.yml +++ b/.upgradenotes/MDL-79628-2024081607154616.yml @@ -2,5 +2,5 @@ issueNumber: MDL-79628 notes: core: - message: >- - The `$timeout` property of the `navigation_cache` class has been deprecated. + The `$timeout` property of the `\navigation_cache` class has been deprecated. type: deprecated diff --git a/.upgradenotes/MDL-80741-2024052402100622.yml b/.upgradenotes/MDL-80741-2024052402100622.yml index bef2916c77e..14c5ebd87a0 100644 --- a/.upgradenotes/MDL-80741-2024052402100622.yml +++ b/.upgradenotes/MDL-80741-2024052402100622.yml @@ -2,7 +2,7 @@ issueNumber: MDL-80741 notes: mod_assign: - message: > - The default option "Never" for `attemptreopenmethod` setting, which + The default option "Never" for the `attemptreopenmethod` setting, which disallowed multiple attempts at the assignment, has been removed. This option was unnecessary because limiting attempts to 1 through the `maxattempts` setting achieves the same behavior. diff --git a/.upgradenotes/MDL-80744-2024062407163290.yml b/.upgradenotes/MDL-80744-2024062407163290.yml index 32313a5c827..6731ef9630f 100644 --- a/.upgradenotes/MDL-80744-2024062407163290.yml +++ b/.upgradenotes/MDL-80744-2024062407163290.yml @@ -3,18 +3,18 @@ notes: core_grades: - message: >- The behat step definition - `behat_grade::i_confirm_in_search_within_the_gradebook_widget_exists` has + `\behat_grade::i_confirm_in_search_within_the_gradebook_widget_exists()` has been deprecated. Please use - `behat_general::i_confirm_in_search_combobox_exists` instead. + `\behat_general::i_confirm_in_search_combobox_exists()` instead. type: deprecated - message: >- The behat step definition - `behat_grade::i_confirm_in_search_within_the_gradebook_widget_does_not_exist` + `\behat_grade::i_confirm_in_search_within_the_gradebook_widget_does_not_exist()` has been deprecated. Please use - `behat_general::i_confirm_in_search_combobox_does_not_exist` instead. + `\behat_general::i_confirm_in_search_combobox_does_not_exist()` instead. type: deprecated - message: >- - The behat step definition `behat_grade::i_click_on_in_search_widget` has - been deprecated. Please use `behat_general::i_click_on_in_search_combobox` + The behat step definition `\behat_grade::i_click_on_in_search_widget()` has + been deprecated. Please use `\behat_general::i_click_on_in_search_combobox()` instead. type: deprecated diff --git a/.upgradenotes/MDL-80745-2024060602320785.yml b/.upgradenotes/MDL-80745-2024060602320785.yml index 886ca56498c..8938d3d7aa7 100644 --- a/.upgradenotes/MDL-80745-2024060602320785.yml +++ b/.upgradenotes/MDL-80745-2024060602320785.yml @@ -2,7 +2,7 @@ issueNumber: MDL-80745 notes: core_grades: - message: > - The `core_grades_renderer::group_selector()` method has been deprecated. + The `\core_grades_renderer::group_selector()` method has been deprecated. Please use `\core_course\output\actionbar\renderer` to render a `group_selector` renderable instead. type: deprecated diff --git a/.upgradenotes/MDL-80747-2024070204570918.yml b/.upgradenotes/MDL-80747-2024070204570918.yml index 416ba16836d..82578f83b4e 100644 --- a/.upgradenotes/MDL-80747-2024070204570918.yml +++ b/.upgradenotes/MDL-80747-2024070204570918.yml @@ -3,7 +3,7 @@ notes: core: - message: > The `\core\output\select_menu` widget now supports rendering dividers - between menu options. Empty elements (null or empty strings) within the + between menu options. Empty elements (`null` or empty strings) within the array of options are considered and rendered as dividers in the dropdown menu. type: improved diff --git a/.upgradenotes/MDL-80747-2024070205140878.yml b/.upgradenotes/MDL-80747-2024070205140878.yml index babdd3819fa..169a5207559 100644 --- a/.upgradenotes/MDL-80747-2024070205140878.yml +++ b/.upgradenotes/MDL-80747-2024070205140878.yml @@ -2,7 +2,7 @@ issueNumber: MDL-80747 notes: core: - message: > - The `core\output\select_menu` widget now supports a new feature: inline + The `\core\output\select_menu` widget now supports a new feature: inline labels. You can render the label inside the combobox widget by passing `true` to the `$inlinelabel` parameter when calling the `->set_label()` method. diff --git a/.upgradenotes/MDL-80748-2024070105545553.yml b/.upgradenotes/MDL-80748-2024070105545553.yml index cc380bd12bf..d037d3650f4 100644 --- a/.upgradenotes/MDL-80748-2024070105545553.yml +++ b/.upgradenotes/MDL-80748-2024070105545553.yml @@ -3,7 +3,7 @@ notes: core_table: - message: >+ A new `$reponsive` property (defaulting to `true`) has been added to the - `core_table\flexible_table` class. + `\core_table\flexible_table` class. This property allows you to control whether the table is rendered as a responsive table. diff --git a/.upgradenotes/MDL-80750-2024072207571657.yml b/.upgradenotes/MDL-80750-2024072207571657.yml index 3525d921874..8f8bff5db15 100644 --- a/.upgradenotes/MDL-80750-2024072207571657.yml +++ b/.upgradenotes/MDL-80750-2024072207571657.yml @@ -2,18 +2,18 @@ issueNumber: MDL-80750 notes: mod_assign: - message: > - A new method named `get_grading_batch_operation_details` has been added + A new method, `\assign_feedback_plugin::get_grading_batch_operation_details()`, has been added to the `assign_feedback_plugin` abstract class. Assignment feedback plugins can now override this method to define bulk action buttons that will appear in the sticky footer on the assignment grading page. type: improved - message: > - The `assign_feedback_plugin::get_grading_batch_operations` method is now + The `\assign_feedback_plugin::get_grading_batch_operations()` method is now deprecated. Use `assign_feedback_plugin::get_grading_batch_operation_details` instead. type: deprecated - message: > - The `assign_grading_table::plugingradingbatchoperations` property is + The `\assign_grading_table::plugingradingbatchoperations` property has been removed. You can use - `assign_feedback_plugin::get_grading_batch_operation_details` instead. + `\assign_feedback_plugin::get_grading_batch_operation_details()` instead. type: deprecated diff --git a/.upgradenotes/MDL-80752-2024061412574424.yml b/.upgradenotes/MDL-80752-2024061412574424.yml index a1bee18856a..d1271e178b6 100644 --- a/.upgradenotes/MDL-80752-2024061412574424.yml +++ b/.upgradenotes/MDL-80752-2024061412574424.yml @@ -3,6 +3,6 @@ notes: mod_assign: - message: > The `$submissionpluginenabled` and `$submissioncount` parameters from - the constructor of the `mod_assign\output::grading_actionmenu` class + the constructor of the `\mod_assign\output::grading_actionmenu` class have been deprecated. type: deprecated diff --git a/.upgradenotes/MDL-80890-2024082311294389.yml b/.upgradenotes/MDL-80890-2024082311294389.yml index 5f34676cde8..790c2412e0c 100644 --- a/.upgradenotes/MDL-80890-2024082311294389.yml +++ b/.upgradenotes/MDL-80890-2024082311294389.yml @@ -2,7 +2,7 @@ issueNumber: MDL-80890 notes: core: - message: > - A new hook called `core\hook\output\after_http_headers` has been + A new hook called `\core\hook\output\after_http_headers` has been created. This hook allow plugins to modify the content after headers are sent. type: improved diff --git a/.upgradenotes/MDL-80962-2024071606510000.yml b/.upgradenotes/MDL-80962-2024071606510000.yml index 7f5fe7f4582..90646ed5898 100644 --- a/.upgradenotes/MDL-80962-2024071606510000.yml +++ b/.upgradenotes/MDL-80962-2024071606510000.yml @@ -2,8 +2,11 @@ issueNumber: MDL-80962 notes: factor_sms: - message: > - The following classes are removed as the SMS feature now takes advantage of core_sms API: - - sms_sent (admin/tool/mfa/factor/sms/classes/event/sms_sent.php) - - aws_sns (admin/tool/mfa/factor/sms/classes/local/smsgateway/aws_sns.php) - - gateway_interface (admin/tool/mfa/factor/sms/classes/local/smsgateway/gateway_interface.php) + The following classes are removed as the SMS feature now takes advantage of `core_sms` API: + + - `\factor_sms\event\sms_sent` + + - `\factor_sms\local\smsgateway\aws_sns` + + - `\factor_sms\local\smsgateway\gateway_interface` type: removed diff --git a/.upgradenotes/MDL-80962-2024071606563987.yml b/.upgradenotes/MDL-80962-2024071606563987.yml index 12462365886..ca5b2a2f8fb 100644 --- a/.upgradenotes/MDL-80962-2024071606563987.yml +++ b/.upgradenotes/MDL-80962-2024071606563987.yml @@ -3,7 +3,10 @@ notes: core: - message: > The following classes are deprecated as they are handled by core_sms API and smsgateway_aws plugin: - - admin_settings_aws_region (lib/classes/aws/admin_settings_aws_region.php) - - aws_helper (lib/classes/aws/aws_helper.php) - - client_factory (lib/classes/aws/client_factory.php) + + - `\core\aws\admin_settings_aws_region` + + - `\core\aws\aws_helper` + + - `\core\aws\client_factory` type: deprecated diff --git a/.upgradenotes/MDL-81031-2024071905193761.yml b/.upgradenotes/MDL-81031-2024071905193761.yml index 3573257665f..85169a50104 100644 --- a/.upgradenotes/MDL-81031-2024071905193761.yml +++ b/.upgradenotes/MDL-81031-2024071905193761.yml @@ -5,9 +5,7 @@ notes: The following classes have been renamed. Existing classes are currently unaffected. - | Old class name | New class name | - - | --- | --- | - - | `\core_user` | `\core\user` | + | Old class name | New class name | + | --- | --- | + | `\core_user` | `\core\user` | type: improved diff --git a/.upgradenotes/MDL-81274-2024052002223792.yml b/.upgradenotes/MDL-81274-2024052002223792.yml index 3f78a84ff0f..70cad17c6c5 100644 --- a/.upgradenotes/MDL-81274-2024052002223792.yml +++ b/.upgradenotes/MDL-81274-2024052002223792.yml @@ -2,5 +2,5 @@ issueNumber: MDL-81274 notes: mod_data: - message: >- - The `data_add_record` method accepts a new `$approved` parameter to set the corresponding state of the new record + The `\data_add_record()` method accepts a new `$approved` parameter to set the corresponding state of the new record. type: improved diff --git a/.upgradenotes/MDL-81282-2024052421193784.yml b/.upgradenotes/MDL-81282-2024052421193784.yml index 0a76c9712c0..3b033449264 100644 --- a/.upgradenotes/MDL-81282-2024052421193784.yml +++ b/.upgradenotes/MDL-81282-2024052421193784.yml @@ -3,5 +3,5 @@ notes: core: - message: >- New DML constant `SQL_INT_MAX` to define the size of a large integer - with cross database platform support + with cross database platform support. type: improved diff --git a/.upgradenotes/MDL-81321-2024052421223463.yml b/.upgradenotes/MDL-81321-2024052421223463.yml index b95697fe366..d63db13fd05 100644 --- a/.upgradenotes/MDL-81321-2024052421223463.yml +++ b/.upgradenotes/MDL-81321-2024052421223463.yml @@ -2,6 +2,6 @@ issueNumber: MDL-81321 notes: mod_data: - message: >- - The `mod_data_renderer::render_fields_footer` method has been deprecated - as it's no longer used + The `\mod_data_renderer::render_fields_footer()` method has been deprecated + as it's no longer used. type: deprecated diff --git a/.upgradenotes/MDL-81330-2024052002223792.yml b/.upgradenotes/MDL-81330-2024052002223792.yml index 2f182ad3179..84ec4ca42bb 100644 --- a/.upgradenotes/MDL-81330-2024052002223792.yml +++ b/.upgradenotes/MDL-81330-2024052002223792.yml @@ -2,5 +2,5 @@ issueNumber: MDL-81330 notes: core_reportbuilder: - message: > - The base datasource `add_all_from_entities` method accepts a new optional parameter to specify which entities to add elements from + The base datasource `\core_reportbuilder\datasource::add_all_from_entities()` method accepts a new optional `array $entitynames` parameter to specify which entities to add elements from. type: changed diff --git a/.upgradenotes/MDL-81125-2024052303354010.yml b/.upgradenotes/MDL-81407-2024052303354010.yml similarity index 50% rename from .upgradenotes/MDL-81125-2024052303354010.yml rename to .upgradenotes/MDL-81407-2024052303354010.yml index 054f39ba461..88aba91ddde 100644 --- a/.upgradenotes/MDL-81125-2024052303354010.yml +++ b/.upgradenotes/MDL-81407-2024052303354010.yml @@ -1,8 +1,8 @@ -issueNumber: MDL-81125 +issueNumber: MDL-81407 notes: core_question: - message: > - `column_base::from_column_name` now has an `$ignoremissing` parameter, which can + `\core_question\local\bank\column_base::from_column_name()` method now accepts a `bool $ingoremissing` parameter, which can be used to ignore if the class does not exist, instead of throwing an exception. type: changed diff --git a/.upgradenotes/MDL-81428-2024061009440935.yml b/.upgradenotes/MDL-81428-2024061009440935.yml index 365aae650a4..0a90b2bdef3 100644 --- a/.upgradenotes/MDL-81428-2024061009440935.yml +++ b/.upgradenotes/MDL-81428-2024061009440935.yml @@ -2,11 +2,11 @@ issueNumber: MDL-81428 notes: core_message: - message: > - The `\core_message\helper::togglecontact_link_params` now accepts a new - optional param called `isrequested` to indicate the status of the - contact request + The `\core_message\helper::togglecontact_link_params()` method now accepts a new + optional `$isrequested` parameter to indicate the status of the + contact request. type: changed - message: > The `core_message/remove_contact_button` template is deprecated and will - be removed in the future version + be removed in a future release. type: deprecated diff --git a/.upgradenotes/MDL-81434-2024052002223792.yml b/.upgradenotes/MDL-81434-2024052002223792.yml index 21c618f10df..92060b5be12 100644 --- a/.upgradenotes/MDL-81434-2024052002223792.yml +++ b/.upgradenotes/MDL-81434-2024052002223792.yml @@ -2,5 +2,5 @@ issueNumber: MDL-81434 notes: core_reportbuilder: - message: |2 - Added a new database helper method `sql_replace_parameters` to help ensure uniqueness of parameters within a SQL expression + Added a new database helper method `sql_replace_parameters` to help ensure uniqueness of parameters within a SQL expression. type: improved diff --git a/.upgradenotes/MDL-81523-2024052812372416.yml b/.upgradenotes/MDL-81523-2024052812372416.yml index 0e911f6a728..9e7d381a755 100644 --- a/.upgradenotes/MDL-81523-2024052812372416.yml +++ b/.upgradenotes/MDL-81523-2024052812372416.yml @@ -2,7 +2,7 @@ issueNumber: MDL-81523 notes: core: - message: > - All the setup and tear down methods of `PHPUnit` now are required to, + All the `setUp()` and `tearDown()` methods of `PHPUnit` now are required to, always, call to their parent counterparts. This is a good practice to avoid future problems, especially when updating to PHPUnit >= 10. diff --git a/.upgradenotes/MDL-81572-2024052421131873.yml b/.upgradenotes/MDL-81572-2024052421131873.yml index 19a21d398aa..53aa86821d2 100644 --- a/.upgradenotes/MDL-81572-2024052421131873.yml +++ b/.upgradenotes/MDL-81572-2024052421131873.yml @@ -3,5 +3,5 @@ notes: editor_tiny: - message: >- The `helplinktext` language string is no longer required by editor - plugins, instead the `pluginname` will be used in the help dialogue + plugins, instead the `pluginname` will be used in the help dialogue. type: changed diff --git a/.upgradenotes/MDL-81597-2024052709350390.yml b/.upgradenotes/MDL-81597-2024052709350390.yml index 9cae88e6d0b..c7b12df97ff 100644 --- a/.upgradenotes/MDL-81597-2024052709350390.yml +++ b/.upgradenotes/MDL-81597-2024052709350390.yml @@ -1,5 +1,5 @@ issueNumber: MDL-81597 notes: output: - - message: 'Added a new `renderer_base::get_page` getter method' + - message: 'Added a new `\renderer_base::get_page` getter method.' type: improved diff --git a/.upgradenotes/MDL-81597-2024052802370704.yml b/.upgradenotes/MDL-81597-2024052802370704.yml index 6a3eda6ceb2..8a7dd481582 100644 --- a/.upgradenotes/MDL-81597-2024052802370704.yml +++ b/.upgradenotes/MDL-81597-2024052802370704.yml @@ -1,5 +1,5 @@ issueNumber: MDL-81597 notes: theme: - - message: New `core/context_header` mustache template has been added. This template can be overridden by themes to modify the context header + - message: New `core/context_header` mustache template has been added. This template can be overridden by themes to modify the context header. type: improved diff --git a/.upgradenotes/MDL-81675-2024052916042539.yml b/.upgradenotes/MDL-81675-2024052916042539.yml index 01f5b355457..ed29757e0cd 100644 --- a/.upgradenotes/MDL-81675-2024052916042539.yml +++ b/.upgradenotes/MDL-81675-2024052916042539.yml @@ -1,11 +1,13 @@ issueNumber: MDL-81675 notes: core_course: - - message: >- + - message: >+ - New optional `sectionNum` parameter has been added to `activitychooser` AMD module initializer. + - New option `sectionnum` parameter has been added to `get_course_content_items()` external function. + - New optional `sectionnum` parameter has been added to `get_content_items_for_user_in_course()` function. type: improved diff --git a/.upgradenotes/MDL-81699-2024071803025011.yml b/.upgradenotes/MDL-81699-2024071803025011.yml index 285d972bbc8..59846387d30 100644 --- a/.upgradenotes/MDL-81699-2024071803025011.yml +++ b/.upgradenotes/MDL-81699-2024071803025011.yml @@ -2,7 +2,7 @@ issueNumber: MDL-81699 notes: core_course: - message: > - Webservices `core_course_get_courses_by_field` now accepts a new + The `core_course_get_courses_by_field` web service now accepts a new parameter `sectionid` to be able to retrieve the course that has the - indicated section + indicated section. type: improved diff --git a/.upgradenotes/MDL-81742-2024061108544588.yml b/.upgradenotes/MDL-81742-2024061108544588.yml index 7fcb68c7afa..eef929c5725 100644 --- a/.upgradenotes/MDL-81742-2024061108544588.yml +++ b/.upgradenotes/MDL-81742-2024061108544588.yml @@ -2,6 +2,6 @@ issueNumber: MDL-81742 notes: mod_feedback: - message: >- - The method `mod_feedback\output\renderer::create_template_form()` has + The method `\mod_feedback\output\renderer::create_template_form()` has been deprecated. It is not used anymore. type: deprecated diff --git a/.upgradenotes/MDL-81749-2024053015081306.yml b/.upgradenotes/MDL-81749-2024053015081306.yml index 3fda2a016c5..243d5188901 100644 --- a/.upgradenotes/MDL-81749-2024053015081306.yml +++ b/.upgradenotes/MDL-81749-2024053015081306.yml @@ -2,7 +2,8 @@ issueNumber: MDL-81749 notes: core_completion: - message: >- - `get_overall_completion_state()` function could also return + The `\core_completion\activity_custom_completion::get_overall_completion_state()` method + can now also return `COMPLETION_COMPLETE_FAIL` and not only `COMPLETION_COMPLETE` and - `COMPLETION_INCOMPLETE` + `COMPLETION_INCOMPLETE`. type: changed diff --git a/.upgradenotes/MDL-81767-2024082909213766.yml b/.upgradenotes/MDL-81767-2024082909213766.yml index 78dc6f6e6f2..02541462174 100644 --- a/.upgradenotes/MDL-81767-2024082909213766.yml +++ b/.upgradenotes/MDL-81767-2024082909213766.yml @@ -8,5 +8,5 @@ notes: type: improved - message: >- New `\core_course\hook\before_activitychooserbutton_exported` hook added - to allow third-party plugins to extend activity chooser button options + to allow third-party plugins to extend activity chooser button options. type: improved diff --git a/.upgradenotes/MDL-81767-2024082909393804.yml b/.upgradenotes/MDL-81767-2024082909393804.yml index c95cd7be75d..f482405087b 100644 --- a/.upgradenotes/MDL-81767-2024082909393804.yml +++ b/.upgradenotes/MDL-81767-2024082909393804.yml @@ -7,6 +7,6 @@ notes: type: improved core_courseformat: - message: >- - Added new `create_module` webservice to create new module (with + Added new `core_courseformat_create_module` webservice to create new module (with quickcreate feature) instances in the course. type: improved diff --git a/.upgradenotes/MDL-81771-2024062007575085.yml b/.upgradenotes/MDL-81771-2024062007575085.yml index 3378d8fa53e..0cba7477e87 100644 --- a/.upgradenotes/MDL-81771-2024062007575085.yml +++ b/.upgradenotes/MDL-81771-2024062007575085.yml @@ -1,5 +1,5 @@ issueNumber: MDL-81771 notes: core_report: - - message: Report has been added to subsystem components list + - message: Report has been added to subsystem components list. type: improved diff --git a/.upgradenotes/MDL-81771-2024062007585494.yml b/.upgradenotes/MDL-81771-2024062007585494.yml index e773a2b75ca..43a49eecef3 100644 --- a/.upgradenotes/MDL-81771-2024062007585494.yml +++ b/.upgradenotes/MDL-81771-2024062007585494.yml @@ -1,5 +1,5 @@ issueNumber: MDL-81771 notes: core_report: - - message: New `coursestructure` output general class has been created + - message: A new general output class, `\core_report\output\coursestructure`, has been created. type: improved diff --git a/.upgradenotes/MDL-81781-2024060309073788.yml b/.upgradenotes/MDL-81781-2024060309073788.yml index dd76955e05a..7a7e5404052 100644 --- a/.upgradenotes/MDL-81781-2024060309073788.yml +++ b/.upgradenotes/MDL-81781-2024060309073788.yml @@ -2,6 +2,6 @@ issueNumber: MDL-81781 notes: core: - message: > - The `\core\dataformat::get_format_instance` method is now public, and - can be used to retrieve a writer instance for a given dataformat + The `\core\dataformat::get_format_instance()` method is now public, and + can be used to retrieve a writer instance for a given dataformat. type: changed diff --git a/.upgradenotes/MDL-81850-2024053009132487.yml b/.upgradenotes/MDL-81850-2024053009132487.yml index 721c8f4c6f3..e5bf898b8b6 100644 --- a/.upgradenotes/MDL-81850-2024053009132487.yml +++ b/.upgradenotes/MDL-81850-2024053009132487.yml @@ -2,7 +2,7 @@ issueNumber: MDL-81850 notes: availability: - message: >- - The base class `info::get_groups` method has a `$userid` parameter to - specify for which user you want to retrieve course groups (defaults to - current user) + The base class `\core_availability\info::get_groups()` method now accepts a `$userid` parameter to + specify which user you want to retrieve course groups (defaults to + current user). type: changed diff --git a/.upgradenotes/MDL-81903-1715757780765.yml b/.upgradenotes/MDL-81903-1715757780765.yml index 3da4517d2b1..0daa1919f66 100644 --- a/.upgradenotes/MDL-81903-1715757780765.yml +++ b/.upgradenotes/MDL-81903-1715757780765.yml @@ -1,5 +1,5 @@ issueNumber: MDL-81903 notes: core: - - message: Added an `exception` L2 Namespace to APIs + - message: Added a new `exception` L2 Namespace to APIs. type: improved diff --git a/.upgradenotes/MDL-81920-2024061811464967.yml b/.upgradenotes/MDL-81920-2024061811464967.yml index c3b7b437bd9..a4489c242d1 100644 --- a/.upgradenotes/MDL-81920-2024061811464967.yml +++ b/.upgradenotes/MDL-81920-2024061811464967.yml @@ -1,12 +1,11 @@ issueNumber: MDL-81920 notes: core: - - message: > - The following classes have been moved into the `\core` namespace and now - support autoloading: + - message: | + The following classes are now also available in the `\core\` namespace and support autoloading: - - - `emoticon_manager` - - - `lang_string` + | Old class name | New class name | + | --- | --- | + | `\emoticon_manager` | `\core\emoticon_manager` | + | `\lang_string` | `\core\lang_string` | type: improved diff --git a/.upgradenotes/MDL-81924-2024071006131218.yml b/.upgradenotes/MDL-81924-2024071006131218.yml index 2ee899afd94..bcb93ba437f 100644 --- a/.upgradenotes/MDL-81924-2024071006131218.yml +++ b/.upgradenotes/MDL-81924-2024071006131218.yml @@ -1,5 +1,5 @@ issueNumber: MDL-81924 notes: core_sms: - - message: A new `\core_sms` subsystem has been created + - message: A new `\core_sms` subsystem has been created. type: improved diff --git a/.upgradenotes/MDL-81940-2024053010202574.yml b/.upgradenotes/MDL-81940-2024053010202574.yml index dee32891107..3f921db0428 100644 --- a/.upgradenotes/MDL-81940-2024053010202574.yml +++ b/.upgradenotes/MDL-81940-2024053010202574.yml @@ -3,12 +3,12 @@ notes: core: - message: >- The following methods have been deprecated, existing usage should switch - to secure `\core\encryption` library: + to use the secure `\core\encryption::encrypt()` and `\core\encryption::decrypt()` static methods: - - `rc4encrypt` + - `\rc4encrypt()` - - `rc4decrypt` + - `\rc4decrypt()` - - `endecrypt` + - `\endecrypt()` type: deprecated diff --git a/.upgradenotes/MDL-81951-2024060308093446.yml b/.upgradenotes/MDL-81951-2024060308093446.yml index 96eefaf1f21..46ffabc720e 100644 --- a/.upgradenotes/MDL-81951-2024060308093446.yml +++ b/.upgradenotes/MDL-81951-2024060308093446.yml @@ -2,6 +2,6 @@ issueNumber: MDL-81951 notes: core_communication: - message: >- - The `get_enrolled_users_for_course()` method now accepts an additional + The `\core_communication\helper::get_enrolled_users_for_course()` method now accepts an additional argument that can filter only active enrolments. type: changed diff --git a/.upgradenotes/MDL-81960-2024061004043644.yml b/.upgradenotes/MDL-81960-2024061004043644.yml index c371a6aff54..f4f19bd5a88 100644 --- a/.upgradenotes/MDL-81960-2024061004043644.yml +++ b/.upgradenotes/MDL-81960-2024061004043644.yml @@ -1,29 +1,19 @@ issueNumber: MDL-81960 notes: core: - - message: >- + - message: | The following classes have been renamed and now support autoloading. Existing classes are currently unaffected. - | Old class name | New class name | - - | --- | --- | - - | `\moodle_url` | `\core\url` | - - | `\progress_trace` | `\core\output\progress_trace` | - - | `\combined_progress_trace` | `\core\output\progress_trace\combined_progress_trace` | - - | `\error_log_progress_trace` | `\core\output\progress_trace\error_log_progress_trace` | - - | `\html_list_progress_trace` | `\core\output\progress_trace\html_list_progress_trace` | - - | `\html_progress_trace` | `\core\output\progress_trace\html_progress_trace` | - - | `\null_progress_trace` | `\core\output\progress_trace\null_progress_trace` | - - | `\progress_trace_buffer` | `\core\output\progress_trace\progress_trace_buffer` | - - | `\text_progress_trace` | `\core\output\progress_trace\text_progress_trace` | + | Old class name | New class name | + | --- | --- | + | `\moodle_url` | `\core\url` | + | `\progress_trace` | `\core\output\progress_trace` | + | `\combined_progress_trace` | `\core\output\progress_trace\combined_progress_trace` | + | `\error_log_progress_trace` | `\core\output\progress_trace\error_log_progress_trace` | + | `\html_list_progress_trace` | `\core\output\progress_trace\html_list_progress_trace` | + | `\html_progress_trace` | `\core\output\progress_trace\html_progress_trace` | + | `\null_progress_trace` | `\core\output\progress_trace\null_progress_trace` | + | `\progress_trace_buffer` | `\core\output\progress_trace\progress_trace_buffer` | + | `\text_progress_trace` | `\core\output\progress_trace\text_progress_trace` | type: improved diff --git a/.upgradenotes/MDL-82041-2024053011364585.yml b/.upgradenotes/MDL-82041-2024053011364585.yml index 752c8300e98..63e89fd75c1 100644 --- a/.upgradenotes/MDL-82041-2024053011364585.yml +++ b/.upgradenotes/MDL-82041-2024053011364585.yml @@ -1,13 +1,14 @@ issueNumber: MDL-82041 notes: core_reportbuilder: - - message: >- - All time related code has been updated to the PSR-20 Clock interface, as + - message: > + All time-related code has been updated to the PSR-20 Clock interface, as such the following methods no longer accept a `$timenow` parameter (instead please use `\core\clock` dependency injection): - `core_reportbuilder_generator::create_schedule` - - - `core_reportbuilder\local\helpers\schedule::[create_schedule|calculate_next_send_time]` + - `core_reportbuilder\local\helpers\schedule::create_schedule()` + + - `core_reportbuilder\local\helpers\schedule::calculate_next_send_time()` type: changed diff --git a/.upgradenotes/MDL-82066-2024070911064670.yml b/.upgradenotes/MDL-82066-2024070911064670.yml index 1fc208b62ac..e0a103a041c 100644 --- a/.upgradenotes/MDL-82066-2024070911064670.yml +++ b/.upgradenotes/MDL-82066-2024070911064670.yml @@ -2,6 +2,6 @@ issueNumber: MDL-82066 notes: core_user: - message: >- - New `\core_user\hook\extend_default_homepage` hook added to allow - third-party plugins to extend the default homepage options for the site + A new hook, `\core_user\hook\extend_default_homepage`, has been added to allow + third-party plugins to extend the default homepage options for the site. type: improved diff --git a/.upgradenotes/MDL-82066-2024070915322412.yml b/.upgradenotes/MDL-82066-2024070915322412.yml index 8f3e5450fb2..742141bdc0c 100644 --- a/.upgradenotes/MDL-82066-2024070915322412.yml +++ b/.upgradenotes/MDL-82066-2024070915322412.yml @@ -2,11 +2,11 @@ issueNumber: MDL-82066 notes: core: - message: >- - The `get_home_page()` method can now return new constant `HOMEPAGE_URL`, + The `\get_home_page()` function can now return new constant `HOMEPAGE_URL`, applicable when a third-party hook has extended the default homepage - options for the site + options for the site. - A new method, `get_default_home_page_url()` has been added which will - return the correct URL when this constant is returned + A new function, `\get_default_home_page_url()` has been added which will + return the correct URL when this constant is returned. type: changed diff --git a/.upgradenotes/MDL-82133-2024061206555177.yml b/.upgradenotes/MDL-82133-2024061206555177.yml index 09d02408c66..e317ef0630d 100644 --- a/.upgradenotes/MDL-82133-2024061206555177.yml +++ b/.upgradenotes/MDL-82133-2024061206555177.yml @@ -1,16 +1,12 @@ issueNumber: MDL-82133 notes: core_reportbuilder: - - message: > + - message: | The following classes have been moved to use the new exception API as a L2 namespace: - | Old class | New class | - - |-----------|-----------| - - | `\core_reportbuilder\report_access_exception` | `\core_reportbuilder\exception\report_access_exception` | - - | `\core_reportbuilder\source_invalid_exception` | `\core_reportbuilder\exception\source_invalid_exception` | - - | `\core_reportbuilder\source_unavailable_exception` | `\core_reportbuilder\exception\source_unavailable_exception` | + | Old class | New class | + | ----------- | ----------- | + | `\core_reportbuilder\report_access_exception` | `\core_reportbuilder\exception\report_access_exception` | + | `\core_reportbuilder\source_invalid_exception` | `\core_reportbuilder\exception\source_invalid_exception` | + | `\core_reportbuilder\source_unavailable_exception` | `\core_reportbuilder\exception\source_unavailable_exception` | type: changed diff --git a/.upgradenotes/MDL-82146-2024070508361756.yml b/.upgradenotes/MDL-82146-2024070508361756.yml index 9cfd9828096..160bdebf525 100644 --- a/.upgradenotes/MDL-82146-2024070508361756.yml +++ b/.upgradenotes/MDL-82146-2024070508361756.yml @@ -1,7 +1,13 @@ issueNumber: MDL-82146 notes: core_courseformat: - - message: >- - New `$disabled` parameter has been added to `select`, `select_optgroup` and - `select_option` html_writers to create disabled option elements. + - message: > + A new `$disabled` parameter has been added to the following `html_writer` methods: + + + - `\core\output\html_writer::select()` + + - `\core\output\html_writer::select_optgroup()` + + - `\core\output\html_writer::select_option()` type: improved diff --git a/.upgradenotes/MDL-82146-2024071006310652.yml b/.upgradenotes/MDL-82146-2024071006310652.yml index 1a8f152d6f6..bb3581f0b07 100644 --- a/.upgradenotes/MDL-82146-2024071006310652.yml +++ b/.upgradenotes/MDL-82146-2024071006310652.yml @@ -2,6 +2,7 @@ issueNumber: MDL-82146 notes: report_log: - message: >- - `get_activities_list()` function returns also an array of disabled - elements, apart from the array of activities. + The `\report_log_renderable::get_activities_list()` method return values + now includes an array of disabled + elements, in addition to the array of activities. type: improved diff --git a/.upgradenotes/MDL-82157-2024061105175092.yml b/.upgradenotes/MDL-82157-2024061105175092.yml index 0f72147b766..491b9fd9083 100644 --- a/.upgradenotes/MDL-82157-2024061105175092.yml +++ b/.upgradenotes/MDL-82157-2024061105175092.yml @@ -3,5 +3,5 @@ notes: core: - message: >- The following method has been deprecated and should not be used any - longer: `print_grade_menu`. + longer: `\print_grade_menu()`. type: deprecated diff --git a/.upgradenotes/MDL-82158-2024062501361899.yml b/.upgradenotes/MDL-82158-2024062501361899.yml index 13a1a603771..ced98d78de5 100644 --- a/.upgradenotes/MDL-82158-2024062501361899.yml +++ b/.upgradenotes/MDL-82158-2024062501361899.yml @@ -1,75 +1,43 @@ issueNumber: MDL-82158 notes: core_cache: - - message: > + - message: | The following classes have been renamed and now support autoloading. Existing classes are currently unaffected. - | Old class name | New class name | - - | --- | --- | - - | `\cache_definition` | `\core_cache\definition` | - - | `\cache_request` | `\core_cache\request_cache` | - - | `\cache_session` | `\core_cache\session_cache` | - - | `\cache_cached_object` | `\core_cache\cached_object` | - - | `\cache_config` | `\core_cache\config` | - - | `\cache_config_writer` | `\core_cache\config_writer` | - - | `\cache_config_disabled` | `\core_cache\disabled_config` | - - | `\cache_disabled` | `\core_cache\disabled_cache` | - - | `\config_writer` | `\core_cache\config_writer` | - - | `\cache_data_source` | `\core_cache\data_source_interface` | - - | `\cache_data_source_versionable` | `\core_cache\versionable_data_source_interface` | - - | `\cache_exception` | `\core_cache\exception/cache_exception` | - - | `\cache_factory` | `\core_cache\factory` | - - | `\cache_factory_disabled` | `\core_cache\disabled_factory` | - - | `\cache_helper` | `\core_cache\helper` | - - | `\cache_is_key_aware` | `\core_cache\key_aware_cache_interface` | - - | `\cache_is_lockable` | `\core_cache\lockable_cache_interface` | - - | `\cache_is_searchable` | `\core_cache\searchable_cache_interface` | - - | `\cache_is_configurable` | `\core_cache\configurable_cache_interface` | - - | `\cache_loader` | `\core_cache\loader_interface` | - - | `\cache_loader_with_locking` | `\core_cache\loader_with_locking_interface` | - - | `\cache_lock_interface` | `\core_cache\cache_lock_interface` | - - | `\cache_store` | `\core_cache\store` | - - | `\cache_store_interface` | `\core_cache\store_interface` | - - | `\cache_ttl_wrapper` | `\core_cache\ttl_wrapper` | - - | `\cacheable_object` | `\core_cache\cacheable_object_interface` | - - | `\cacheable_object_array` | `\core_cache\cacheable_object_array` | - - | `\cache_definition_mappings_form` | `\core_cache\form/cache_definition_mappings_form` | - - | `\cache_definition_sharing_form` | `\core_cache\form/cache_definition_sharing_form` | - - | `\cache_lock_form` | `\core_cache\form/cache_lock_form` | - - | `\cache_mode_mappings_form` | `\core_cache\form/cache_mode_mappings_form` | + | Old class name | New class name | + | --- | --- | + | `\cache_definition` | `\core_cache\definition` | + | `\cache_request` | `\core_cache\request_cache` | + | `\cache_session` | `\core_cache\session_cache` | + | `\cache_cached_object` | `\core_cache\cached_object` | + | `\cache_config` | `\core_cache\config` | + | `\cache_config_writer` | `\core_cache\config_writer` | + | `\cache_config_disabled` | `\core_cache\disabled_config` | + | `\cache_disabled` | `\core_cache\disabled_cache` | + | `\config_writer` | `\core_cache\config_writer` | + | `\cache_data_source` | `\core_cache\data_source_interface` | + | `\cache_data_source_versionable` | `\core_cache\versionable_data_source_interface` | + | `\cache_exception` | `\core_cache\exception/cache_exception` | + | `\cache_factory` | `\core_cache\factory` | + | `\cache_factory_disabled` | `\core_cache\disabled_factory` | + | `\cache_helper` | `\core_cache\helper` | + | `\cache_is_key_aware` | `\core_cache\key_aware_cache_interface` | + | `\cache_is_lockable` | `\core_cache\lockable_cache_interface` | + | `\cache_is_searchable` | `\core_cache\searchable_cache_interface` | + | `\cache_is_configurable` | `\core_cache\configurable_cache_interface` | + | `\cache_loader` | `\core_cache\loader_interface` | + | `\cache_loader_with_locking` | `\core_cache\loader_with_locking_interface` | + | `\cache_lock_interface` | `\core_cache\cache_lock_interface` | + | `\cache_store` | `\core_cache\store` | + | `\cache_store_interface` | `\core_cache\store_interface` | + | `\cache_ttl_wrapper` | `\core_cache\ttl_wrapper` | + | `\cacheable_object` | `\core_cache\cacheable_object_interface` | + | `\cacheable_object_array` | `\core_cache\cacheable_object_array` | + | `\cache_definition_mappings_form` | `\core_cache\form/cache_definition_mappings_form` | + | `\cache_definition_sharing_form` | `\core_cache\form/cache_definition_sharing_form` | + | `\cache_lock_form` | `\core_cache\form/cache_lock_form` | + | `\cache_mode_mappings_form` | `\core_cache\form/cache_mode_mappings_form` | type: improved diff --git a/.upgradenotes/MDL-82168-2024062815382042.yml b/.upgradenotes/MDL-82168-2024062815382042.yml index 651e2c5ba87..5fd5f1f3f57 100644 --- a/.upgradenotes/MDL-82168-2024062815382042.yml +++ b/.upgradenotes/MDL-82168-2024062815382042.yml @@ -1,5 +1,10 @@ issueNumber: MDL-82168 notes: core_badges: - - message: New webservices `enable_badges` and `disable_badges` have been added. + - message: > + The following new webservices have been added: + + - `core_badges_enable_badges` + + - `core_badges_disable_badges` type: improved diff --git a/.upgradenotes/MDL-82183-2024061304200941.yml b/.upgradenotes/MDL-82183-2024061304200941.yml index b5a1efe8f97..88582d2a032 100644 --- a/.upgradenotes/MDL-82183-2024061304200941.yml +++ b/.upgradenotes/MDL-82183-2024061304200941.yml @@ -1,130 +1,69 @@ issueNumber: MDL-82183 notes: core: - - message: > + - message: | The following classes are now also available in the following new locations. They will continue to work in their old locations: - | Old classname | New classname | - - | --- | --- | - - | `\action_link` | `\core\output\action_link` | - - | `\action_menu_filler` | `\core\output\action_menu\filler` | - - | `\action_menu_link_primary` | `\core\output\action_menu\link_primary` | - - | `\action_menu_link_secondary` | `\core\output\action_menu\link_secondary` | - - | `\action_menu_link` | `\core\output\action_menu\link` | - - | `\action_menu` | `\core\output\action_menu` | - - | `\block_contents` | `\core_block\output\block_contents` | - - | `\block_move_target` | `\core_block\output\block_move_target` | - - | `\component_action` | `\core\output\actions\component_action` | - - | `\confirm_action` | `\core\output\actions\confirm_action` | - - | `\context_header` | `\core\output\context_header` | - - | `\core\output\local\action_menu\subpanel` | `\core\output\action_menu\subpanel` | - - | `\core_renderer_ajax` | `\core\output\core_renderer_ajax` | - - | `\core_renderer_cli` | `\core\output\core_renderer_cli` | - - | `\core_renderer_maintenance` | `\core\output\core_renderer_maintenance` | - - | `\core_renderer` | `\core\output\core_renderer` | - - | `\custom_menu_item` | `\core\output\custom_menu_item` | - - | `\custom_menu` | `\core\output\custom_menu` | - - | `\file_picker` | `\core\output\file_picker` | - - | `\flexible_table` | `\core_table\flexible_table` | - - | `\fragment_requirements_manager` | `\core\output\requirements\fragment_requirements_manager` | - - | `\help_icon` | `\core\output\help_icon` | - - | `\html_table_cell` | `\core_table\output\html_table_cell` | - - | `\html_table_row` | `\core_table\output\html_table_row` | - - | `\html_table` | `\core_table\output\html_table` | - - | `\html_writer` | `\core\output\html_writer` | - - | `\image_icon` | `\core\output\image_icon` | - - | `\initials_bar` | `\core\output\initials_bar` | - - | `\js_writer` | `\core\output\js_writer` | - - | `\page_requirements_manager` | `\core\output\requirements\page_requirements_manager` | - - | `\paging_bar` | `\core\output\paging_bar` | - - | `\pix_emoticon` | `\core\output\pix_emoticon` | - - | `\pix_icon_font` | `\core\output\pix_icon_font` | - - | `\pix_icon_fontawesome` | `\core\output\pix_icon_fontawesome` | - - | `\pix_icon` | `\core\output\pix_icon` | - - | `\plugin_renderer_base` | `\core\output\plugin_renderer_base` | - - | `\popup_action` | `\core\output\actions\popup_action` | - - | `\preferences_group` | `\core\output\preferences_group` | - - | `\preferences_groups` | `\core\output\preferences_groups` | - - | `\progress_bar` | `\core\output\progress_bar` | - - | `\renderable` | `\core\output\renderable` | - - | `\renderer_base` | `\core\output\renderer_base` | - - | `\renderer_factory_base` | `\core\output\renderer_factory\renderer_factory_base` | - - | `\renderer_factory` | `\core\output\renderer_factory\renderer_factory_interface` | - - | `\single_button` | `\core\output\single_button` | - - | `\single_select` | `\core\output\single_select` | - - | `\standard_renderer_factory` | `\core\output\renderer_factory\standard_renderer_factory` | - - | `\table_dataformat_export_format` | `\core_table\dataformat_export_format` | - - | `\table_default_export_format_parent` | `\core_table\base_export_format` | - - | `\table_sql` | `\core_table\sql_table` | - - | `\tabobject` | `\core\output\tabobject` | - - | `\tabtree` | `\core\output\tabtree` | - - | `\templatable` | `\core\output\templatable` | - - | `\theme_config` | `\core\output\theme_config` | - - | `\theme_overridden_renderer_factory` | `\core\output\renderer_factory\theme_overridden_renderer_factory` | - - | `\url_select` | `\core\output\url_select` | - - | `\user_picture` | `\core\output\user_picture` | - - | `\xhtml_container_stack` | `\core\output\xhtml_container_stack` | - - | `\YUI_config` | `\core\output\requirements\yui` | - + | Old classname | New classname | + | --- | --- | + | `\action_link` | `\core\output\action_link` | + | `\action_menu_filler` | `\core\output\action_menu\filler` | + | `\action_menu_link_primary` | `\core\output\action_menu\link_primary` | + | `\action_menu_link_secondary` | `\core\output\action_menu\link_secondary` | + | `\action_menu_link` | `\core\output\action_menu\link` | + | `\action_menu` | `\core\output\action_menu` | + | `\block_contents` | `\core_block\output\block_contents` | + | `\block_move_target` | `\core_block\output\block_move_target` | + | `\component_action` | `\core\output\actions\component_action` | + | `\confirm_action` | `\core\output\actions\confirm_action` | + | `\context_header` | `\core\output\context_header` | + | `\core\output\local\action_menu\subpanel` | `\core\output\action_menu\subpanel` | + | `\core_renderer_ajax` | `\core\output\core_renderer_ajax` | + | `\core_renderer_cli` | `\core\output\core_renderer_cli` | + | `\core_renderer_maintenance` | `\core\output\core_renderer_maintenance` | + | `\core_renderer` | `\core\output\core_renderer` | + | `\custom_menu_item` | `\core\output\custom_menu_item` | + | `\custom_menu` | `\core\output\custom_menu` | + | `\file_picker` | `\core\output\file_picker` | + | `\flexible_table` | `\core_table\flexible_table` | + | `\fragment_requirements_manager` | `\core\output\requirements\fragment_requirements_manager` | + | `\help_icon` | `\core\output\help_icon` | + | `\html_table_cell` | `\core_table\output\html_table_cell` | + | `\html_table_row` | `\core_table\output\html_table_row` | + | `\html_table` | `\core_table\output\html_table` | + | `\html_writer` | `\core\output\html_writer` | + | `\image_icon` | `\core\output\image_icon` | + | `\initials_bar` | `\core\output\initials_bar` | + | `\js_writer` | `\core\output\js_writer` | + | `\page_requirements_manager` | `\core\output\requirements\page_requirements_manager` | + | `\paging_bar` | `\core\output\paging_bar` | + | `\pix_emoticon` | `\core\output\pix_emoticon` | + | `\pix_icon_font` | `\core\output\pix_icon_font` | + | `\pix_icon_fontawesome` | `\core\output\pix_icon_fontawesome` | + | `\pix_icon` | `\core\output\pix_icon` | + | `\plugin_renderer_base` | `\core\output\plugin_renderer_base` | + | `\popup_action` | `\core\output\actions\popup_action` | + | `\preferences_group` | `\core\output\preferences_group` | + | `\preferences_groups` | `\core\output\preferences_groups` | + | `\progress_bar` | `\core\output\progress_bar` | + | `\renderable` | `\core\output\renderable` | + | `\renderer_base` | `\core\output\renderer_base` | + | `\renderer_factory_base` | `\core\output\renderer_factory\renderer_factory_base` | + | `\renderer_factory` | `\core\output\renderer_factory\renderer_factory_interface` | + | `\single_button` | `\core\output\single_button` | + | `\single_select` | `\core\output\single_select` | + | `\standard_renderer_factory` | `\core\output\renderer_factory\standard_renderer_factory` | + | `\table_dataformat_export_format` | `\core_table\dataformat_export_format` | + | `\table_default_export_format_parent` | `\core_table\base_export_format` | + | `\table_sql` | `\core_table\sql_table` | + | `\tabobject` | `\core\output\tabobject` | + | `\tabtree` | `\core\output\tabtree` | + | `\templatable` | `\core\output\templatable` | + | `\theme_config` | `\core\output\theme_config` | + | `\theme_overridden_renderer_factory` | `\core\output\renderer_factory\theme_overridden_renderer_factory` | + | `\url_select` | `\core\output\url_select` | + | `\user_picture` | `\core\output\user_picture` | + | `\xhtml_container_stack` | `\core\output\xhtml_container_stack` | + | `\YUI_config` | `\core\output\requirements\yui` | type: improved diff --git a/.upgradenotes/MDL-82210-2024070210360255.yml b/.upgradenotes/MDL-82210-2024070210360255.yml index 08e42aaa1a4..d6dc72218cd 100644 --- a/.upgradenotes/MDL-82210-2024070210360255.yml +++ b/.upgradenotes/MDL-82210-2024070210360255.yml @@ -6,8 +6,8 @@ notes: selected by default. - Support for the `regular`, and `brands` families of icons has now been adde, - allowing icons defined with `icon_system::FONTAWESOME` to use them. + Support for the `regular`, and `brands` families of icons has now been added, + allowing icons defined with `\core\outut\icon_system::FONTAWESOME` to use them. Icons can select the FontAwesome family (`fa-regular`, `fa-brands`, `fa-solid`) diff --git a/.upgradenotes/MDL-82212-2024080916163806.yml b/.upgradenotes/MDL-82212-2024080916163806.yml index 6d799a972e3..ce2c7b9be71 100644 --- a/.upgradenotes/MDL-82212-2024080916163806.yml +++ b/.upgradenotes/MDL-82212-2024080916163806.yml @@ -2,8 +2,8 @@ issueNumber: MDL-82212 notes: core: - message: >- - A new method, `get_deprecated_icons()`, has been added to the icon_system - class. All deprecated icons should be registered through this method. + A new method, `\core\output\::get_deprecated_icons()`, has been added + to the `icon_system` class. All deprecated icons should be registered through this method. Plugins can implement a callback to `pluginname_get_deprecated_icons()` to register their deprecated icons too. diff --git a/.upgradenotes/MDL-82223-2024061807452821.yml b/.upgradenotes/MDL-82223-2024061807452821.yml index 7aa28074335..3b1a88ce0c5 100644 --- a/.upgradenotes/MDL-82223-2024061807452821.yml +++ b/.upgradenotes/MDL-82223-2024061807452821.yml @@ -3,5 +3,5 @@ notes: core_availability: - message: > The previously deprecated renderer - `render_core_availability_multiple_messages` method has been removed + `render_core_availability_multiple_messages` method has been removed. type: removed diff --git a/.upgradenotes/MDL-82259-2024072314533865.yml b/.upgradenotes/MDL-82259-2024072314533865.yml index 5405c43079b..d49ba61672f 100644 --- a/.upgradenotes/MDL-82259-2024072314533865.yml +++ b/.upgradenotes/MDL-82259-2024072314533865.yml @@ -4,18 +4,18 @@ notes: - message: >- The following methods have been updated to accept a section name in addition to the section number: - - `i_open_section_edit_menu()` + - `\behat_course::i_open_section_edit_menu()` - - `i_show_section()` + - `\behat_course::i_show_section()` - - `i_hide_section(),` + - `\behat_course::i_hide_section(),` - - `i_wait_until_section_is_available()` + - `\behat_course::i_wait_until_section_is_available()` - - `show_section_link_exists()` + - `\behat_course::show_section_link_exists()` - - `hide_section_link_exists()` + - `\behat_course::hide_section_link_exists()` - - `section_exists()` + - `\behat_course::section_exists()` type: improved diff --git a/.upgradenotes/MDL-82287-2024062501330649.yml b/.upgradenotes/MDL-82287-2024062501330649.yml index e1bfa14b872..287607c8e90 100644 --- a/.upgradenotes/MDL-82287-2024062501330649.yml +++ b/.upgradenotes/MDL-82287-2024062501330649.yml @@ -2,24 +2,24 @@ issueNumber: MDL-82287 notes: core: - message: > - The following methods have been formally deprecated: + The following functions have been initially deprecated: - - `get_core_subsystems` + - `\get_core_subsystems()` - - `get_plugin_types` + - `\get_plugin_types()` - - `get_plugin_list` + - `\get_plugin_list()` - - `get_plugin_list_with_class` + - `\get_plugin_list_with_class()` - - `get_plugin_directory` + - `\get_plugin_directory()` - - `normalize_component` + - `\normalize_component()` - - `get_component_directory` + - `\get_component_directory()` - - `get_context_instance` + - `\get_context_instance()` Note: These methods have been deprecated for a long time, but previously @@ -30,11 +30,11 @@ notes: exception if called: - - `get_context_instance` + - `\get_context_instance()` - - `can_use_rotated_text` + - `\can_use_rotated_text()` - - `get_system_context` + - `\get_system_context()` - - `print_arrow` + - `\print_arrow()` type: deprecated diff --git a/.upgradenotes/MDL-82297-2024080506435773.yml b/.upgradenotes/MDL-82297-2024080506435773.yml index f54619a4deb..c31265845fe 100644 --- a/.upgradenotes/MDL-82297-2024080506435773.yml +++ b/.upgradenotes/MDL-82297-2024080506435773.yml @@ -2,7 +2,8 @@ issueNumber: MDL-82297 notes: core: - message: > - Add optional icon and title to notification. Two parameters have been added to the `core\output\notification` so when creating a notification you can pass - an icon and a title. + Two new optional parameters have been added to the `\core\output\notification` constructor: + - `null|string $title` + - `null|string $icon` type: improved diff --git a/.upgradenotes/MDL-82385-2024080107582683.yml b/.upgradenotes/MDL-82385-2024080107582683.yml index 1e28f960995..3885a7b1244 100644 --- a/.upgradenotes/MDL-82385-2024080107582683.yml +++ b/.upgradenotes/MDL-82385-2024080107582683.yml @@ -2,6 +2,6 @@ issueNumber: MDL-82385 notes: core_course: - message: >- - The external function `core_course::get_course_contents` now returns the + The external function `core_course_get_contents` now returns the `component` and `itemid` of sections. type: changed diff --git a/.upgradenotes/MDL-82427-2024071003570291.yml b/.upgradenotes/MDL-82427-2024071003570291.yml index 1819f8dbb45..f810c96abc6 100644 --- a/.upgradenotes/MDL-82427-2024071003570291.yml +++ b/.upgradenotes/MDL-82427-2024071003570291.yml @@ -2,6 +2,6 @@ issueNumber: MDL-82427 notes: core_filters: - message: >- - The `filter_manager::text_filtering_hash` method has been finally + The `\core_filters\filter_manager::text_filtering_hash` method has been finally deprecated and removed. type: deprecated diff --git a/.upgradenotes/MDL-82447-2024072509223792.yml b/.upgradenotes/MDL-82447-2024072509223792.yml index 4eb22344854..cf84c108a3d 100644 --- a/.upgradenotes/MDL-82447-2024072509223792.yml +++ b/.upgradenotes/MDL-82447-2024072509223792.yml @@ -2,5 +2,5 @@ issueNumber: MDL-82447 notes: mod_bigbluebuttonbn: - message: > - Mobile support via plugin has been removed. + Mobile support via plugin has been removed as it is now natively available in the Moodle App. type: removed diff --git a/.upgradenotes/MDL-82466-2024071510553022.yml b/.upgradenotes/MDL-82466-2024071510553022.yml index cd219f229ed..ad532714c46 100644 --- a/.upgradenotes/MDL-82466-2024071510553022.yml +++ b/.upgradenotes/MDL-82466-2024071510553022.yml @@ -2,6 +2,7 @@ issueNumber: MDL-82466 notes: core_reportbuilder: - message: > - New format helper `format_time` method, for use in column callbacks that - represent a duration of time (e.g. "3 days 4 hours") + A new static method, `\core_reportbuilder\local\helpers\format::format_time()`, + has been added for use in column callbacks that represent a duration of time + (for example "3 days 4 hours"). type: improved diff --git a/.upgradenotes/MDL-82481-2024071516341176.yml b/.upgradenotes/MDL-82481-2024071516341176.yml index 12afa7f87bb..52210a0fe84 100644 --- a/.upgradenotes/MDL-82481-2024071516341176.yml +++ b/.upgradenotes/MDL-82481-2024071516341176.yml @@ -3,5 +3,5 @@ notes: customfield_select: - message: > The field controller `get_options` method now returns each option - pre-formatted + pre-formatted. type: changed diff --git a/.upgradenotes/MDL-82488-2024071608464009.yml b/.upgradenotes/MDL-82488-2024071608464009.yml index 20f5601b1b5..18fbef55741 100644 --- a/.upgradenotes/MDL-82488-2024071608464009.yml +++ b/.upgradenotes/MDL-82488-2024071608464009.yml @@ -2,7 +2,7 @@ issueNumber: MDL-82488 notes: core_customfield: - message: > - The field controller `get_formatted_name()` method now accepts an - optional `$escape` parameter to define whether to escape the returned - name + The field controller `\core_customfield\field_controller::get_formatted_name()` + method now accepts an optional `$escape` parameter to define whether to escape the returned + name. type: changed diff --git a/.upgradenotes/MDL-82490-2024080509320820.yml b/.upgradenotes/MDL-82490-2024080509320820.yml index a2716684e21..3fc943e8c62 100644 --- a/.upgradenotes/MDL-82490-2024080509320820.yml +++ b/.upgradenotes/MDL-82490-2024080509320820.yml @@ -2,6 +2,6 @@ issueNumber: MDL-82490 notes: core: - message: >- - Add `set_disabled_option` method to `url_select` to enable or disable an option - from its url (the key for the option). + A new method, `\url_select::set_disabled_option()`, has been added + to enable or disable an option from its url (the key for the option). type: improved diff --git a/.upgradenotes/MDL-82494-2024071610270239.yml b/.upgradenotes/MDL-82494-2024071610270239.yml index c3017db21d6..5e7a1419476 100644 --- a/.upgradenotes/MDL-82494-2024071610270239.yml +++ b/.upgradenotes/MDL-82494-2024071610270239.yml @@ -2,6 +2,6 @@ issueNumber: MDL-82494 notes: core_user: - message: > - The user profile field `display_name()` method now accepts an optional - `$escape` parameter to define whether to escape the returned name + The user profile field `\profile_field_base::display_name()` method now accepts an optional + `$escape` parameter to define whether to escape the returned name. type: changed diff --git a/.upgradenotes/MDL-82503-2024081605172847.yml b/.upgradenotes/MDL-82503-2024081605172847.yml index 988a151e495..01bb1ab8ce4 100644 --- a/.upgradenotes/MDL-82503-2024081605172847.yml +++ b/.upgradenotes/MDL-82503-2024081605172847.yml @@ -2,6 +2,6 @@ issueNumber: MDL-82503 notes: core_badges: - message: >- - The `$showmanage` parameter in the `\core_badges\output\standard_action_bar` + The `$showmanage` parameter to the `\core_badges\output\standard_action_bar` constructor has been deprecated and should not be used anymore. type: deprecated diff --git a/.upgradenotes/MDL-82510-2024071711550004.yml b/.upgradenotes/MDL-82510-2024071711550004.yml index 9c729b5e08c..e3694d9371e 100644 --- a/.upgradenotes/MDL-82510-2024071711550004.yml +++ b/.upgradenotes/MDL-82510-2024071711550004.yml @@ -1,9 +1,12 @@ issueNumber: MDL-82510 notes: core_courseformat: - - message: >- - New `\core_courseformat\output\local\content\basecontrolmenu` class - has been created. Existing `\core_courseformat\output\local\content\cm\controlmenu` - and `\core_courseformat\output\local\content\section\controlmenu` classes extend - the new `\core_courseformat\output\local\content\basecontrolmenu` class. + - message: > + A new class, `\core_courseformat\output\local\content\basecontrolmenu`, + has been created. + + The following existing classes extend the new class: + + - `\core_courseformat\output\local\content\cm\controlmenu` + - `\core_courseformat\output\local\content\section\controlmenu` type: improved diff --git a/.upgradenotes/MDL-82510-2024071722441237.yml b/.upgradenotes/MDL-82510-2024071722441237.yml index c5262e44c3e..4508ae93234 100644 --- a/.upgradenotes/MDL-82510-2024071722441237.yml +++ b/.upgradenotes/MDL-82510-2024071722441237.yml @@ -1,9 +1,9 @@ issueNumber: MDL-82510 notes: core_courseformat: - - message: >- - New `\core_courseformat\output\local\content\cm\delegatedcontrolmenu` class - has been created extending - `\core_courseformat\output\local\content\basecontrolmenu` class to render - delegated section action menu combining section and module action menu. + - message: > + Course sections now use an action menu to display possible actions that a + user may take in each section. This action menu is rendered using the + `\core_courseformat\output\local\content\cm\delegatedcontrolmenu` renderable + class. type: improved diff --git a/.upgradenotes/MDL-82529-2024071803142477.yml b/.upgradenotes/MDL-82529-2024071803142477.yml index d5d87d60546..af3902a8823 100644 --- a/.upgradenotes/MDL-82529-2024071803142477.yml +++ b/.upgradenotes/MDL-82529-2024071803142477.yml @@ -1,9 +1,11 @@ issueNumber: MDL-82529 notes: core_reportbuilder: - - message: >- - Methods `add_columns_from_entity()`, `add_filters_from_entity()` and - `report_element_search()` have been moved from - `\core_reportbuilder\datasource` class to `\core_reportbuilder\base` class - in order to be available also for system reports + - message: > + The following methods have been moved from `\core_reportbuilder\datasource` class to + its parent class `\core_reportbuilder\base` to make them available for use in system reports: + + - `add_columns_from_entity()` + - `add_filters_from_entity()` + - `report_element_search()` type: improved diff --git a/.upgradenotes/MDL-82567-2024080804140215.yml b/.upgradenotes/MDL-82567-2024080804140215.yml index 5f35274750a..ad3cbbb2bc4 100644 --- a/.upgradenotes/MDL-82567-2024080804140215.yml +++ b/.upgradenotes/MDL-82567-2024080804140215.yml @@ -2,8 +2,11 @@ issueNumber: MDL-82567 notes: core_table: - message: >- - `core_table\dynamic` declares a new method `::has_capability()` to + The `\core_table\dynamic` class declares a new method `::has_capability()` to allow classes implementing this interface to perform access checks - on the dynamic table. This is a breaking change that all dynamic table - implementations must implement for continued functionality. + on the dynamic table. + + Note: This is a breaking change. All implementations of the `\core_table\dynamic` + table interface _must_ implement the new `has_capability(): bool` method for continued + functionality. type: changed diff --git a/.upgradenotes/MDL-82627-2024090304164496.yml b/.upgradenotes/MDL-82627-2024090304164496.yml index 1abf7bfd618..5f6c6146716 100644 --- a/.upgradenotes/MDL-82627-2024090304164496.yml +++ b/.upgradenotes/MDL-82627-2024090304164496.yml @@ -2,10 +2,10 @@ issueNumber: MDL-82627 notes: core: - message: > - There is a new method called `get_fixture_path()` that supports getting - the path to the fixture + A new static method, `\advanced_testcase::get_fixture_path()`, has been added to + enable unit tests to fetch the path to a fixture. type: improved - message: > - There is a new method called `get_mocked_http_client()` that supports - mocking the `http_client` + A new static method, `\advanced_testcase::get_mocked_http_client()`, has been added to + allow unit tests to mock the `\core\http_client` and update the DI container. type: improved diff --git a/.upgradenotes/MDL-82681-2024091902542827.yml b/.upgradenotes/MDL-82681-2024091902542827.yml index a2d8f58d672..869205e177a 100644 --- a/.upgradenotes/MDL-82681-2024091902542827.yml +++ b/.upgradenotes/MDL-82681-2024091902542827.yml @@ -2,6 +2,6 @@ issueNumber: MDL-82681 notes: mod_assign: - message: >- - The method process_save_grading_options() has been deprecated as it is + The method `\assign::process_save_grading_options()` has been deprecated as it is no longer used. type: deprecated diff --git a/.upgradenotes/MDL-82687-2024080211282638.yml b/.upgradenotes/MDL-82687-2024080211282638.yml index 8de28160390..757f4ce5c4d 100644 --- a/.upgradenotes/MDL-82687-2024080211282638.yml +++ b/.upgradenotes/MDL-82687-2024080211282638.yml @@ -2,9 +2,11 @@ issueNumber: MDL-82687 notes: core_form: - message: - Previously, the `duration` form field type would allow users to input positive or negative durations. - However looking at all the uses, everyone was expecting this input type to only accept `times >= 0` seconds, - and almost no-one was bothering to write manual form validation, leading to subtle bugs. - So now, by default this field type will validate the input value is not negative. If you need the - previous behaviour, there is a new option `allownegative` which you can set to true. (The default is false.) + The `duration` form field type has been modified to validate that the supplied value is a positive value. + + Previously it could be any numeric value, but every usage of this field in Moodle was + expecting a positive value. When a negative value was provided and accepted, subtle bugs + could occur. + + Where a negative duration _is_ allowed, the `allownegative` attribute can be set to `true`. type: improved diff --git a/.upgradenotes/MDL-82715-2024091706584681.yml b/.upgradenotes/MDL-82715-2024091706584681.yml index 080ab743797..7271929dc0c 100644 --- a/.upgradenotes/MDL-82715-2024091706584681.yml +++ b/.upgradenotes/MDL-82715-2024091706584681.yml @@ -2,20 +2,19 @@ issueNumber: MDL-82715 notes: customfield_number: - message: > - A new hook, `customfield_number\hook\add_custom_providers`, has been added which + A new hook, `\customfield_number\hook\add_custom_providers`, has been added which allows automatic calculation of number course custom field. - type: improved - message: > - A new class, `\customfield_number\local\numberproviders\nofactivities` has been added + A new class, `\customfield_number\local\numberproviders\nofactivities`, has been added that allows to automatically calculate number of activities of a given type in a given course. type: improved - message: > - Added new webservice `customfield_number_recalculate_value` to recalculate + Added new webservice `customfield_number_recalculate_value`, has been added to recalculate a value of number course custom field. type: improved - message: > - Added `customfield_number\task\cron` cron task that recalculates + A new task, `\customfield_number\task\cron`, cron task that recalculates automatically calculated number course custom fields. type: improved diff --git a/.upgradenotes/MDL-82742-2024080913015227.yml b/.upgradenotes/MDL-82742-2024080913015227.yml index 61ee3c47652..b2e21a933f2 100644 --- a/.upgradenotes/MDL-82742-2024080913015227.yml +++ b/.upgradenotes/MDL-82742-2024080913015227.yml @@ -2,8 +2,9 @@ issueNumber: MDL-82742 notes: core_badges: - message: >- - Added fields `recipientid` and `recipientfullname` to - `user_badge_exporter`, which is used in the return structure of - external functions `core_badges_get_user_badge_by_hash` and - `core_badges_get_user_badges`. + New fields have been added to the return structure of the + `core_badges_get_user_badge_by_hash` and `core_badges_get_user_badges` + external functions: + - `recipientid`: The ID of the user who received the badge. + - `recipientfullname`: The full name of the user who received the badge. type: changed diff --git a/.upgradenotes/MDL-82747-2024080805044739.yml b/.upgradenotes/MDL-82747-2024080805044739.yml index 2980c477cbc..f7a428a2616 100644 --- a/.upgradenotes/MDL-82747-2024080805044739.yml +++ b/.upgradenotes/MDL-82747-2024080805044739.yml @@ -6,6 +6,6 @@ notes: `\core\component::register_autoloader` rather than manually doing so in any exceptional location which requires it. - Note: It is not normally necessaryto include the autoloader manually, + Note: It is not normally necessary to include the autoloader manually, as it is registered automatically when the Moodle environment is bootstrapped. type: improved diff --git a/.upgradenotes/MDL-82845-2024091708245574.yml b/.upgradenotes/MDL-82845-2024091708245574.yml index c83b4cb95ce..89e42669ccf 100644 --- a/.upgradenotes/MDL-82845-2024091708245574.yml +++ b/.upgradenotes/MDL-82845-2024091708245574.yml @@ -2,7 +2,7 @@ issueNumber: MDL-82845 notes: core: - message: >- - The `section_info` class now includes a new method called - `get_sequence_cm_infos` that retrieves all `cm_info` instances associated - with the course section. + The `\section_info` class now includes a new method + `\section_info::get_sequence_cm_infos()` that retrieves all + `\cm_info` instances associated with the course section. type: improved diff --git a/.upgradenotes/MDL-82857-2024082105091693.yml b/.upgradenotes/MDL-82857-2024082105091693.yml index aa0c206fae0..fce90bda20d 100644 --- a/.upgradenotes/MDL-82857-2024082105091693.yml +++ b/.upgradenotes/MDL-82857-2024082105091693.yml @@ -2,6 +2,6 @@ issueNumber: MDL-82857 notes: mod_assign: - message: >- - The `mod_assign_grading_options_form` class has been deprecated since it + The `\mod_assign_grading_options_form` class has been removed since it is no longer used. - type: deprecated + type: removed diff --git a/.upgradenotes/MDL-82872-2024092317271375.yml b/.upgradenotes/MDL-82872-2024092317271375.yml index 91e52b278c4..68b3e45a938 100644 --- a/.upgradenotes/MDL-82872-2024092317271375.yml +++ b/.upgradenotes/MDL-82872-2024092317271375.yml @@ -2,6 +2,6 @@ issueNumber: MDL-82872 notes: mod_bigbluebuttonbn: - message: >- - The process_meeting_events in the broker class has been extended to process all the process_action functions - implemented by the plugins. + The `broker::process_meeting_events()` method has been extended to call the `::process_action()` method + implemented by plugins. type: improved diff --git a/.upgradenotes/MDL-83047-2024091002230447.yml b/.upgradenotes/MDL-83047-2024091002230447.yml index 2c219331979..4edf53b728e 100644 --- a/.upgradenotes/MDL-83047-2024091002230447.yml +++ b/.upgradenotes/MDL-83047-2024091002230447.yml @@ -9,6 +9,7 @@ notes: layouts if both of the following are true: - Your theme plugin inherits from `theme_boost` and uses this CSS class + - Your theme plugin applies a different styling for the page header for the maintenance and secure layouts. diff --git a/.upgradenotes/MDL-83164-2024092002215993.yml b/.upgradenotes/MDL-83164-2024092002215993.yml index 7594cfdb6b0..bc64f427102 100644 --- a/.upgradenotes/MDL-83164-2024092002215993.yml +++ b/.upgradenotes/MDL-83164-2024092002215993.yml @@ -1,7 +1,7 @@ issueNumber: MDL-83164 notes: core: - - message: > + - message: | When rendering a renderable located within a namespace, the namespace will now be included in the renderer method name with double-underscores separating the namespace parts. @@ -14,44 +14,22 @@ notes: The following are examples of the new behaviour: - | Renderable name | Renderer method - name | - - | --- | - --- | - - | `\core\output\action_menu\link` | - `render_action_menu__link` | - - | `\core\output\action_menu\link_primary` | - `render_action_menu__link_primary` | - - | `\core\output\action\menu\link` | - `render_action__menu__link` | - - | `\core\output\user_menu\link` | - `render_user_menu__link` | + | Renderable name | Renderer method name | + | --- | --- | + | `\core\output\action_menu\link` | `render_action_menu__link` | + | `\core\output\action_menu\link_primary` | `render_action_menu__link_primary` | + | `\core\output\action\menu\link` | `render_action__menu__link` | + | `\core\output\user_menu\link` | `render_user_menu__link` | type: improved - - message: > + - message: | The following renderer methods have been deprecated from the core renderer: - | method | - replacement | - - | --- | - --- | - - | `render_action_menu_link` | - `render_action_menu__link` | - - | `render_action_menu_link_primary` | - `render_action_menu__link_primary` | - - | `render_action_menu_link_secondary` | - `render_action_menu__link_secondary` | - - | `render_action_menu_filler` | - `render_action_menu__filler` | + | method | replacement | + | --- | --- | + | `render_action_menu_link` | `render_action_menu__link` | + | `render_action_menu_link_primary` | `render_action_menu__link_primary` | + | `render_action_menu_link_secondary` | `render_action_menu__link_secondary` | + | `render_action_menu_filler` | `render_action_menu__filler` | type: deprecated