mirror of
https://github.com/moodle/moodle.git
synced 2025-08-07 01:46:45 +02:00
MDL-64123 webservices: Add valueused to completion data
This commit is contained in:
parent
33a388eff7
commit
7672471236
6 changed files with 42 additions and 6 deletions
|
@ -268,7 +268,8 @@ class core_completion_external extends external_api {
|
|||
'state' => $activitycompletiondata->completionstate,
|
||||
'timecompleted' => $activitycompletiondata->timemodified,
|
||||
'tracking' => $activity->completion,
|
||||
'overrideby' => $activitycompletiondata->overrideby
|
||||
'overrideby' => $activitycompletiondata->overrideby,
|
||||
'valueused' => core_availability\info::completion_value_used($course, $activity->id)
|
||||
);
|
||||
}
|
||||
|
||||
|
@ -302,6 +303,8 @@ class core_completion_external extends external_api {
|
|||
0 means none, 1 manual, 2 automatic'),
|
||||
'overrideby' => new external_value(PARAM_INT, 'The user id who has overriden the status, or null',
|
||||
VALUE_OPTIONAL),
|
||||
'valueused' => new external_value(PARAM_BOOL, 'Whether the completion status affects the availability
|
||||
of another activity.', VALUE_OPTIONAL),
|
||||
), 'Activity'
|
||||
), 'List of activities status'
|
||||
),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue