MDL-79205 webservice: gracefully handle invalid functions in docs.
This commit is contained in:
+1
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user