2012-09-17 11:28:05 +08:00
|
|
|
This files describes API changes in /calendar/* ,
|
|
|
|
information provided here is intended especially for developers.
|
|
|
|
|
2020-08-21 01:19:03 +02:00
|
|
|
=== 3.10 ===
|
2020-07-23 14:53:49 +10:00
|
|
|
* The core_calendar\local\event\value_objects\times_interface class now has new method get_usermidnight_time() which
|
|
|
|
returns the user midnight time for a given event.
|
|
|
|
|
2020-04-29 22:22:10 +02:00
|
|
|
=== 3.9 ===
|
|
|
|
* Plugins can now create their own calendar events, both standard and action ones. To do it they need to specify
|
|
|
|
$event->component when creating an event. Component events can not be edited or deleted manually.
|
|
|
|
See https://docs.moodle.org/dev/Calendar_API#Component_events
|
2020-05-20 10:38:12 +02:00
|
|
|
* The following functions have been deprecated because they were no longer used:
|
|
|
|
- calendar_add_event_metadata()
|
|
|
|
- core_calendar_renderer::event()
|
2020-04-29 22:22:10 +02:00
|
|
|
|
2019-06-14 09:36:55 +08:00
|
|
|
=== 3.8 ===
|
|
|
|
* The following functions have been finally deprecated and can not be used anymore:
|
|
|
|
* calendar_wday_name()
|
|
|
|
* calendar_get_block_upcoming()
|
|
|
|
* calendar_print_month_selector()
|
|
|
|
* calendar_cron()
|
2019-06-14 14:20:00 +08:00
|
|
|
* calendar_get_mini()
|
|
|
|
* calendar_get_upcoming()
|
2019-10-30 17:14:21 +08:00
|
|
|
* Added core_calendar_external::get_timestamps(), which allows an array containing an arbitrary number of arrays of
|
|
|
|
date/time data to be converted and returned as timestamps, along with an optional key.
|
2019-06-14 09:36:55 +08:00
|
|
|
|
2018-03-06 15:22:11 +11:00
|
|
|
=== 3.6 ===
|
|
|
|
* calendar_get_default_courses() function now has optional $userid parameter.
|
2018-03-28 00:19:10 +11:00
|
|
|
* calendar_set_filters() function now has optional $user parameter.
|
2018-04-05 00:37:56 +10:00
|
|
|
* The core_calendar\local\event\container class now provides two new helper methods for getting and setting the requesting user:
|
|
|
|
set_requesting_user() and get_requesting_user().
|
2018-08-06 09:29:54 +08:00
|
|
|
* The following functions have been finally deprecated and can not be used anymore:
|
|
|
|
* calendar_preferences_button()
|
2018-08-06 16:35:45 +10:00
|
|
|
* added core_calendar_get_valid_event_timestart_range callback for course events when the update_event_start_day function is used
|
|
|
|
in the local api.
|
2018-03-06 15:22:11 +11:00
|
|
|
|
2018-01-11 09:55:54 +01:00
|
|
|
=== 3.5 ===
|
|
|
|
* core_calendar_external::get_calendar_events now returns the categoryid for category events.
|
|
|
|
|
2017-09-19 13:03:31 +08:00
|
|
|
=== 3.4 ===
|
2017-11-10 08:15:08 +08:00
|
|
|
* calendar_get_mini, and calendar_get_upcoming have been deprecated. Please update to use the new exporters and renderers.
|
2017-10-30 08:15:10 +00:00
|
|
|
* added core_calendar_get_valid_event_timestart_range and core_calendar_event_timestart_updated callbacks for module events
|
2017-09-05 07:45:24 +00:00
|
|
|
when the update_event_start_day function is used in the local api.
|
2017-09-19 13:03:31 +08:00
|
|
|
|
2017-01-05 13:45:42 +08:00
|
|
|
=== 3.3 ===
|
|
|
|
* calendar_event_hook() has been removed. Developers should be using the Moodle events system to achieve this behaviour,
|
|
|
|
rather than using a hacky calendar specific implementation.
|
2017-02-08 11:18:05 +08:00
|
|
|
* calendar_wday_name() is deprecated and no longer used in core.
|
|
|
|
* calendar_get_block_upcoming() is deprecated, please use block_calendar_upcoming::get_upcoming_content() instead.
|
|
|
|
* calendar_print_month_selector() is deprecated and no longer used in core.
|
|
|
|
* calendar_cron() is deprecated and should not be used. Please use the core\task\calendar_cron_task instead.
|
2017-01-05 13:45:42 +08:00
|
|
|
|
2016-09-06 21:29:34 -04:00
|
|
|
=== 3.2 ===
|
2017-02-08 11:18:05 +08:00
|
|
|
* calendar_preferences_button() is now deprecated. Calendar preferences have been moved to the user preferences page.
|
2016-09-06 21:29:34 -04:00
|
|
|
|
2014-11-19 10:42:15 +08:00
|
|
|
=== 2.9 ===
|
|
|
|
default values changes in code:
|
|
|
|
* core_calendar_external::get_calendar_events_parameters() 'timeend' default option changed; now, by default,
|
|
|
|
all events are returned, not only the past ones.
|
2015-03-28 18:46:16 +13:00
|
|
|
* calendar types need to be updated to be compatible with standard PHP date/time code
|
2014-11-19 10:42:15 +08:00
|
|
|
|
2013-01-17 11:11:15 +08:00
|
|
|
=== 2.5 ===
|
|
|
|
required changes in code:
|
|
|
|
* calendar_add_icalendar_event() now requires a valid subscriptionid
|
|
|
|
* calendar_process_subscription_row() throws exception for invalid subscriptionid
|
|
|
|
* calendar_update_subscription_events() now throws a dml_exception instead of moodle_exception for bad subscriptions
|
2013-01-10 11:11:12 +08:00
|
|
|
* calendar_get_mini() function now has optional $placement and $courseid paramaters.
|
2012-09-17 11:28:05 +08:00
|
|
|
|
2013-04-08 13:48:10 +08:00
|
|
|
optional - no changes needed:
|
|
|
|
* calendar_update_subscription() should now be used to update Ical subscriptions.
|
|
|
|
|
2012-09-17 11:28:05 +08:00
|
|
|
=== 2.4 ===
|
|
|
|
|
|
|
|
required changes in code:
|
|
|
|
|
|
|
|
* calendar_get_popup() function now just returns id, instead of the string "id=$id"
|