Back to Moodle

core_calendar (subsystem) Upgrade notes

public/calendar/UPGRADING.md

5.2.01.9 KB
Original Source

core_calendar (subsystem) Upgrade notes

5.2

Removed

    • The calendar_add_event_metadata() has been removed from public/calendar/deprecatedlib.php.
    • The \core_external\external_api\calendar_information::prepare_for_view() has been removed from public/calendar/lib.php.
    • The \core_calendar_renderer::event() has been removed from public/calendar/renderer.php.

    For more information see MDL-87426

5.0

Deprecated

  • Initial deprecation of calendar_sub_month. Use \core_calendar\type_factory::get_calendar_instance()->get_prev_month() instead.

    For more information see MDL-79434

  • calendar_day_representation(), calendar_time_representation() and calendar_format_event_time() functions have been deprecated and can't be used anymore. Use humandate and humantimeperiod classes instead.

    For more information see MDL-83873

  • calendar_get_courselink(), calendar_events_by_day() functions have been deprecated.

    For more information see MDL-84617

  • Initial deprecation of calendar_add_month(). Use \core_calendar\type_factory::get_calendar_instance()->get_next_month() instead.

    For more information see MDL-84657

Removed

  • Final removal of calendar functions:

    • calendar_top_controls()
    • calendar_get_link_previous()
    • calendar_get_link_next()

    For more information see MDL-79434

  • prepare_for_view(), calendar_add_event_metadata() functions have been removed.

    For more information see MDL-84617

  • core_calendar_renderer::event() method has been removed.

    For more information see MDL-84617