Permalink
Browse files

MDL-27976 webservice moodle_user_get_users_by_courseid webservice

  • Loading branch information...
1 parent 7fde489 commit 014792901d7f3efb5ee2e9e03fdc0f670595605a @dcai dcai committed Jun 29, 2011
Showing with 473 additions and 362 deletions.
  1. +10 −0 lib/db/services.php
  2. +219 −361 user/externallib.php
  3. +243 −0 user/lib.php
  4. +1 −1 version.php
View
@@ -129,6 +129,15 @@
'capabilities'=> 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update',
),
+ 'moodle_user_get_users_by_courseid' => array(
+ 'classname' => 'moodle_user_external',
+ 'methodname' => 'get_users_by_courseid',
+ 'classpath' => 'user/externallib.php',
+ 'description' => 'Get enrolled users by course id.',
+ 'type' => 'read',
+ 'capabilities'=> 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups',
+ ),
+
'moodle_user_get_course_participants_by_id' => array(
'classname' => 'moodle_user_external',
'methodname' => 'get_course_participants_by_id',
@@ -258,6 +267,7 @@
'moodle_webservice_get_siteinfo',
'moodle_notes_create_notes',
'moodle_user_get_course_participants_by_id',
+ 'moodle_user_get_users_by_courseid',
'moodle_message_send_messages'),
'enabled' => 0,
'restrictedusers' => 0,
Oops, something went wrong.

0 comments on commit 0147929

Please sign in to comment.