MDL-77802 core_xapi: create core_xapi_get_states webservice

The xAPI get states webservice is needed for mobile APPs to check if any
new state has been stored from another device.
This commit is contained in:
Ferran Recio 2023-03-30 17:46:45 +02:00
parent fba0658777
commit 625f9646a7
7 changed files with 724 additions and 1 deletions

View file

@ -2794,6 +2794,13 @@ $functions = array(
'capabilities' => '',
'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE],
],
'core_xapi_get_states' => [
'classname' => 'core_xapi\external\get_states',
'description' => 'Get all state ID from an activityId.',
'type' => 'read',
'ajax' => true,
'services' => [MOODLE_OFFICIAL_MOBILE_SERVICE],
],
'core_xapi_delete_state' => [
'classname' => 'core_xapi\external\delete_state',
'classpath' => '',