mirror of
https://github.com/moodle/moodle.git
synced 2025-07-25 08:11:39 +02:00
MDL-53772 externallib: Deprecate external_function_info()
This commit is contained in:
committed by
David Monllao
parent
e02e7f5a01
commit
11c16f5fc8
@@ -4473,3 +4473,20 @@ function site_scale_used($scaleid, &$courses) {
|
||||
}
|
||||
return $return;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns detailed function information
|
||||
*
|
||||
* @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) {
|
||||
debugging('external_function_info() is deprecated. Please use external_api::external_function_info() instead.',
|
||||
DEBUG_DEVELOPER);
|
||||
return external_api::external_function_info($function, $strictness);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user