Permalink
Browse files

MDL-27880

1. moodle_user_get_course_participants_by_id web service to get user details in course context
2. Fixed the proformance issues of get_users_by_id web service
  • Loading branch information...
1 parent 7a7d34f commit ea4e96c248442ca940f74e38512bf7d0dfc0f265 @dcai dcai committed Jun 20, 2011
Showing with 510 additions and 184 deletions.
  1. +10 −0 lib/db/services.php
  2. +499 −183 user/externallib.php
  3. +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_course_participants_by_id' => array(
+ 'classname' => 'moodle_user_external',
+ 'methodname' => 'get_course_participants_by_id',
+ 'classpath' => 'user/externallib.php',
+ 'description' => 'Get course user profiles by id.',
+ 'type' => 'read',
+ 'capabilities'=> 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update, moodle/site:accessallgroups',
+ ),
+
'moodle_user_delete_users' => array(
'classname' => 'moodle_user_external',
'methodname' => 'delete_users',
@@ -248,6 +257,7 @@
'moodle_user_get_users_by_id',
'moodle_webservice_get_siteinfo',
'moodle_notes_create_notes',
+ 'moodle_user_get_course_participants_by_id',
'moodle_message_send_messages'),
'enabled' => 0,
'restrictedusers' => 0,
Oops, something went wrong.

0 comments on commit ea4e96c

Please sign in to comment.