MDL-69259 h5pactivity: Add get_user_attempts webservice

This commit is contained in:
Ilya Tregubov 2020-11-24 10:14:35 +02:00
parent a93828a188
commit 82433c0b6a
4 changed files with 473 additions and 2 deletions

View file

@ -78,7 +78,16 @@ $functions = [
'methodname' => 'execute',
'classpath' => '',
'description' => 'Log that the h5pactivity was viewed.',
'type' => 'write',
'type' => 'write',
'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE],
],
'mod_h5pactivity_get_user_attempts' => [
'classname' => 'mod_h5pactivity\external\get_user_attempts',
'methodname' => 'execute',
'classpath' => '',
'description' => 'Return the information needed to list all enrolled user attempts.',
'type' => 'read',
'capabilities' => 'mod/h5pactivity:reviewattempts',
'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE],
],
];