mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
Merge branch 'MDL-66360-master-fix' of git://github.com/andrewnicols/moodle
This commit is contained in:
commit
fb99cef5f1
@ -117,12 +117,14 @@ class store extends external_api {
|
||||
'contextid' => $contextid,
|
||||
'itemname' => $itemname,
|
||||
'gradeduserid' => $gradeduserid,
|
||||
'notifyuser' => $notifyuser,
|
||||
'formdata' => $formdata,
|
||||
] = self::validate_parameters(self::execute_parameters(), [
|
||||
'component' => $component,
|
||||
'contextid' => $contextid,
|
||||
'itemname' => $itemname,
|
||||
'gradeduserid' => $gradeduserid,
|
||||
'notifyuser' => $notifyuser,
|
||||
'formdata' => $formdata,
|
||||
]);
|
||||
|
||||
|
@ -77,17 +77,17 @@ class store extends external_api {
|
||||
'The ID of the user show',
|
||||
VALUE_REQUIRED
|
||||
),
|
||||
'formdata' => new external_value(
|
||||
PARAM_RAW,
|
||||
'The serialised form data representing the grade',
|
||||
VALUE_REQUIRED
|
||||
),
|
||||
'notifyuser' => new external_value(
|
||||
PARAM_BOOL,
|
||||
'Wheteher to notify the user or not',
|
||||
VALUE_DEFAULT,
|
||||
false
|
||||
),
|
||||
'formdata' => new external_value(
|
||||
PARAM_RAW,
|
||||
'The serialised form data representing the grade',
|
||||
VALUE_REQUIRED
|
||||
),
|
||||
]);
|
||||
}
|
||||
|
||||
@ -114,12 +114,14 @@ class store extends external_api {
|
||||
'contextid' => $contextid,
|
||||
'itemname' => $itemname,
|
||||
'gradeduserid' => $gradeduserid,
|
||||
'notifyuser' => $notifyuser,
|
||||
'formdata' => $formdata,
|
||||
] = self::validate_parameters(self::execute_parameters(), [
|
||||
'component' => $component,
|
||||
'contextid' => $contextid,
|
||||
'itemname' => $itemname,
|
||||
'gradeduserid' => $gradeduserid,
|
||||
'notifyuser' => $notifyuser,
|
||||
'formdata' => $formdata,
|
||||
]);
|
||||
|
||||
|
@ -118,12 +118,14 @@ class store extends external_api {
|
||||
'contextid' => $contextid,
|
||||
'itemname' => $itemname,
|
||||
'gradeduserid' => $gradeduserid,
|
||||
'notifyuser' => $notifyuser,
|
||||
'formdata' => $formdata,
|
||||
] = self::validate_parameters(self::execute_parameters(), [
|
||||
'component' => $component,
|
||||
'contextid' => $contextid,
|
||||
'itemname' => $itemname,
|
||||
'gradeduserid' => $gradeduserid,
|
||||
'notifyuser' => $notifyuser,
|
||||
'formdata' => $formdata,
|
||||
]);
|
||||
|
||||
|
@ -76,17 +76,17 @@ class store extends external_api {
|
||||
'The ID of the user show',
|
||||
VALUE_REQUIRED
|
||||
),
|
||||
'formdata' => new external_value(
|
||||
PARAM_RAW,
|
||||
'The serialised form data representing the grade',
|
||||
VALUE_REQUIRED
|
||||
),
|
||||
'notifyuser' => new external_value(
|
||||
PARAM_BOOL,
|
||||
'Wheteher to notify the user or not',
|
||||
VALUE_DEFAULT,
|
||||
false
|
||||
),
|
||||
'formdata' => new external_value(
|
||||
PARAM_RAW,
|
||||
'The serialised form data representing the grade',
|
||||
VALUE_REQUIRED
|
||||
),
|
||||
]);
|
||||
}
|
||||
|
||||
@ -113,12 +113,14 @@ class store extends external_api {
|
||||
'contextid' => $contextid,
|
||||
'itemname' => $itemname,
|
||||
'gradeduserid' => $gradeduserid,
|
||||
'notifyuser' => $notifyuser,
|
||||
'formdata' => $formdata,
|
||||
] = self::validate_parameters(self::execute_parameters(), [
|
||||
'component' => $component,
|
||||
'contextid' => $contextid,
|
||||
'itemname' => $itemname,
|
||||
'gradeduserid' => $gradeduserid,
|
||||
'notifyuser' => $notifyuser,
|
||||
'formdata' => $formdata,
|
||||
]);
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user