1441 |
ariadna |
1 |
=== 4.5 Onwards ===
|
|
|
2 |
|
|
|
3 |
This file has been replaced by UPGRADING.md. See MDL-81125 for further information.
|
|
|
4 |
|
|
|
5 |
===
|
1 |
efrain |
6 |
This files describes API changes in /mod/choice/*,
|
|
|
7 |
information provided here is intended especially for developers.
|
|
|
8 |
|
|
|
9 |
=== 3.3.2 ===
|
|
|
10 |
|
|
|
11 |
* choice_refresh_events() Now takes two additional parameters to refine the update to a specific instance. This function
|
|
|
12 |
now optionally takes the module instance object or ID, and the course module object or ID. Please try to send the full
|
|
|
13 |
objects instead of the ids to save DB calls.
|
|
|
14 |
|
|
|
15 |
=== 3.2 ===
|
|
|
16 |
|
|
|
17 |
* Events mod_choice\event\answer_submitted and mod_choice\event\answer_updated
|
|
|
18 |
are no longer triggered. Observers listening to these events must instead listen
|
|
|
19 |
to mod_choice\event\answer_created and mod_choice\event\answer_deleted that are
|
|
|
20 |
triggered for each option that is selected or unselected. User whose choice was
|
|
|
21 |
modified can be found in $event->relateduserid (this does not have to be the
|
|
|
22 |
user who performs the action).
|
|
|
23 |
|
|
|
24 |
=== 3.0 ===
|
|
|
25 |
|
|
|
26 |
* External function mod_choice_external::get_choices_by_courses returned parameter "name" and
|
|
|
27 |
mod_choice_external::get_choice_results "text" have been changed to PARAM_RAW.
|
|
|
28 |
This is because the new external_format_string function may return raw data if the global moodlewssettingraw parameter is used.
|
|
|
29 |
|
|
|
30 |
=== 2.9 ===
|
|
|
31 |
|
|
|
32 |
* custom renderers must be updated to include action=makechoice field in display_options()
|