mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
MDL-53808 external_api: Remove external_function_info
This commit is contained in:
parent
c7d148dc20
commit
437ffc9f46
2 changed files with 9 additions and 11 deletions
|
@ -4131,19 +4131,11 @@ function site_scale_used($scaleid, &$courses) {
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Returns detailed function information
|
* @deprecated since Moodle 3.1. Use external_api::external_function_info().
|
||||||
*
|
|
||||||
* @deprecated since Moodle 3.1
|
|
||||||
* @param string|object $function name of external function or record from external_function
|
|
||||||
* @param int $strictness IGNORE_MISSING means compatible mode, false returned if record not found, debug message if more found;
|
|
||||||
* MUST_EXIST means throw exception if no record or multiple records found
|
|
||||||
* @return stdClass description or false if not found or exception thrown
|
|
||||||
* @since Moodle 2.0
|
|
||||||
*/
|
*/
|
||||||
function external_function_info($function, $strictness=MUST_EXIST) {
|
function external_function_info($function, $strictness=MUST_EXIST) {
|
||||||
debugging('external_function_info() is deprecated. Please use external_api::external_function_info() instead.',
|
throw new coding_exception('external_function_info() can not be used any'.
|
||||||
DEBUG_DEVELOPER);
|
'more. Please use external_api::external_function_info() instead.');
|
||||||
return external_api::external_function_info($function, $strictness);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
@ -1,6 +1,12 @@
|
||||||
This files describes API changes in core libraries and APIs,
|
This files describes API changes in core libraries and APIs,
|
||||||
information provided here is intended especially for developers.
|
information provided here is intended especially for developers.
|
||||||
|
|
||||||
|
=== 3.6 ===
|
||||||
|
|
||||||
|
* The following functions have been finally deprecated and can not be used any more:
|
||||||
|
|
||||||
|
- external_function_info()
|
||||||
|
|
||||||
=== 3.5 ===
|
=== 3.5 ===
|
||||||
|
|
||||||
* There is a new privacy API that every subsystem and plugin has to implement so that the site can become GDPR
|
* There is a new privacy API that every subsystem and plugin has to implement so that the site can become GDPR
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue