MDL-79205 webservice: gracefully handle invalid functions in docs.

This commit is contained in:
Paul Holden
2023-09-05 08:51:51 +01:00
parent 206c3a66e7
commit 6e9e73aba0
2 changed files with 14 additions and 7 deletions
+1
View File
@@ -46,6 +46,7 @@ class external_api {
* @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|bool description or false if not found or exception thrown
* @throws coding_exception for any property and/or method that is missing or invalid
* @since Moodle 2.0
*/
public static function external_function_info($function, $strictness = MUST_EXIST) {