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