MDL-50539 mod_folder: New WS mod_folder_get_folders_by_courses

This commit is contained in:
Juan Leyva
2017-01-11 12:42:15 +01:00
parent 8ed0851a5e
commit f24dcf0c60
4 changed files with 230 additions and 2 deletions
+9 -1
View File
@@ -36,5 +36,13 @@ $functions = array(
'capabilities' => 'mod/folder:view',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE)
),
'mod_folder_get_folders_by_courses' => array(
'classname' => 'mod_folder_external',
'methodname' => 'get_folders_by_courses',
'description' => 'Returns a list of folders in a provided list of courses, if no list is provided all folders that
the user can view will be returned. Please note that this WS is not returning the folder contents.',
'type' => 'read',
'capabilities' => 'mod/folder:view',
'services' => array(MOODLE_OFFICIAL_MOBILE_SERVICE),
),
);