mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 14:03:52 +01:00
MDL-76583 core_external: Note deprecations and renames
This commit is contained in:
parent
188dfcbf8c
commit
3e1920966c
@ -24,6 +24,10 @@
|
||||
|
||||
use core_external\util;
|
||||
|
||||
// Please note that this file and all of the classes and functions listed below will be deprecated from Moodle 4.6.
|
||||
// This deprecation is delayed to aid plugin developers when maintaining plugins for multiple Moodle versions.
|
||||
// See MDL-76583 for further information.
|
||||
|
||||
class_alias(\core_external\external_api::class, 'external_api');
|
||||
class_alias(\core_external\restricted_context_exception::class, 'restricted_context_exception');
|
||||
class_alias(\core_external\external_description::class, 'external_description');
|
||||
|
@ -25,6 +25,31 @@ information provided here is intended especially for developers.
|
||||
initials bar without the bootstrapping and form handling on each initials bar. If you use this mini render,
|
||||
you'll need to implement your own form handling. Example usage can be found within the grader report.
|
||||
* There is a new helper function mtrace_exception to help with reporting exceptions you have caught in scheduled tasks.
|
||||
* The following parts of the external API have been moved to the core_external subsystem:
|
||||
Classes:
|
||||
- external_api => core_external\external_api
|
||||
- external_description => core_external\external_description
|
||||
- external_files => core_external\files
|
||||
- external_format_value => core_external\external_format_value
|
||||
- external_function_parameters => core_external\external_function_parameters
|
||||
- external_multiple_structure => core_external\external_multiple_structure
|
||||
- external_settings => core_external\external_settings
|
||||
- external_single_structure => core_external\external_single_structure
|
||||
- external_util => core_external\util
|
||||
- external_value => core_external\external_value
|
||||
- external_warnings => core_external\external_warnings
|
||||
- restricted_context_exception => core_external\restricted_context_exception
|
||||
Functions:
|
||||
- external_format_string() => core_external\util::format_string()
|
||||
- external_format_text() => core_external\util::format_text()
|
||||
- external_create_service_token() => core_external\util::generate_token()
|
||||
- external_generate_token() => core_external\util::generate_token()
|
||||
- external_generate_token_for_current_user()
|
||||
=> core_external\util::generate_token_for_current_user()
|
||||
- external_log_token_request => core_external\util::log_token_request()
|
||||
|
||||
The old class locations have been aliased for backwards compatibility and will emit a deprecation notice in a future
|
||||
release.
|
||||
|
||||
=== 4.1 ===
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user