Merge branch 'MDL-61998-34' of git://github.com/sarjona/moodle into MOODLE_34_STABLE
[moodle.git] / calendar / upgrade.txt
blobb2973e53f0ad238646cb5c0d998660904632b36e
1 This files describes API changes in /calendar/* ,
2 information provided here is intended especially for developers.
4 === 3.4 ===
5 * calendar_get_mini, and calendar_get_upcoming have been deprecated. Please update to use the new exporters and renderers.
6 * added core_calendar_get_valid_event_timestart_range and core_calendar_event_timestart_updated callbacks for module events
7   when the update_event_start_day function is used in the local api.
9 === 3.3 ===
10 * calendar_event_hook() has been removed. Developers should be using the Moodle events system to achieve this behaviour,
11   rather than using a hacky calendar specific implementation.
12 * calendar_wday_name() is deprecated and no longer used in core.
13 * calendar_get_block_upcoming() is deprecated, please use block_calendar_upcoming::get_upcoming_content() instead.
14 * calendar_print_month_selector() is deprecated and no longer used in core.
15 * calendar_cron() is deprecated and should not be used. Please use the core\task\calendar_cron_task instead.
17 === 3.2 ===
18 * calendar_preferences_button() is now deprecated. Calendar preferences have been moved to the user preferences page.
20 === 2.9 ===
21 default values changes in code:
22 * core_calendar_external::get_calendar_events_parameters() 'timeend' default option changed; now, by default,
23   all events are returned, not only the past ones.
24 * calendar types need to be updated to be compatible with standard PHP date/time code
26 === 2.5 ===
27 required changes in code:
28 * calendar_add_icalendar_event() now requires a valid subscriptionid
29 * calendar_process_subscription_row() throws exception for invalid subscriptionid
30 * calendar_update_subscription_events() now throws a dml_exception instead of moodle_exception for bad subscriptions
31 * calendar_get_mini() function now has optional $placement and $courseid paramaters.
33 optional - no changes needed:
34 * calendar_update_subscription() should now be used to update Ical subscriptions.
36 === 2.4 ===
38 required changes in code:
40 * calendar_get_popup() function now just returns id, instead of the string "id=$id"