Skip to content

Latest commit

 

History

History
74 lines (50 loc) · 3.07 KB

UPGRADING.md

File metadata and controls

74 lines (50 loc) · 3.07 KB

core (subsystem) Upgrade notes

4.5dev

Removed

  • The previously deprecated function search_generate_text_SQL has been removed and can no longer be used.

    For more information see MDL-48940

  • The previously deprecated function core_text::reset_caches() has been removed and can no longer be used.

    For more information see MDL-71748

  • The following previously deprecated methods have been removed and can no longer be used:

    • renderer_base::should_display_main_logo

    For more information see MDL-73165

  • Final deprecation of print_error(). Use moodle_exception instead.

    For more information see MDL-74484

Changed

  • The class autoloader has been moved to an earlier point in the Moodle bootstrap. Autoloaded classes are now available to scripts using the ABORT_AFTER_CONFIG constant.

    For more information see MDL-80275

  • The \core\dataformat::get_format_instance method is now public, and can be used to retrieve a writer instance for a given dataformat

    For more information see MDL-81781

Added

  • New DML constant SQL_INT_MAX to define the size of a large integer with cross database platform support

    For more information see MDL-81282

  • Added an exception L2 Namespace to APIs

    For more information see MDL-81903

  • Added a mechanism to support autoloading of legacy class files. This will help to reduce the number of require_once calls in the codebase, and move away from the use of monolithic libraries.

    For more information see MDL-81919

  • The following exceptions are now also available in the \core\exception namespace:

    • \coding_exception
    • \file_serving_exception
    • \invalid_dataroot_permissions
    • \invalid_parameter_exception
    • \invalid_response_exception
    • \invalid_state_exception
    • \moodle_exception
    • \require_login_exception
    • \require_login_session_timeout_exception
    • \required_capability_exception
    • \webservice_parameter_exception

    For more information see MDL-81919

Fixed

  • Use server timezone when constructing \DateTimeImmutable for the system \core\clock implementation.

    For more information see MDL-81894

Deprecated

  • The following methods have been deprecated, existing usage should switch to secure \core\encryption library:

    • rc4encrypt
    • rc4decrypt
    • endecrypt

    For more information see MDL-81940

  • The following method has been deprecated and should not be used any longer: print_grade_menu.

    For more information see MDL-82157