Permalink
Browse files

MDL-35543 modify get_users to get_users_by_field (more complex search…

… function named get_users will be implemented later - focussing yet on retrieving user info for a specified field)
  • Loading branch information...
mouneyrac committed Oct 30, 2012
1 parent 8647711 commit c70b9853da9393c51d661aefcb638199f608ce6e
Showing with 249 additions and 254 deletions.
  1. +4 −4 lib/db/services.php
  2. +65 −221 user/externallib.php
  3. +22 −29 user/lib.php
  4. +158 −0 user/tests/externallib_test.php
View
@@ -282,11 +282,11 @@
'capabilities'=> 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update',
),
- 'core_user_get_users' => array(
+ 'core_user_get_users_by_field' => array(
'classname' => 'core_user_external',
- 'methodname' => 'get_users',
+ 'methodname' => 'get_users_by_field',
'classpath' => 'user/externallib.php',
- 'description' => 'Get users by key/value',
+ 'description' => 'Retrieve users information for a specified unique field - If you want to do a user search, use core_user_get_users()',
'type' => 'read',
'capabilities'=> 'moodle/user:viewdetails, moodle/user:viewhiddendetails, moodle/course:useremail, moodle/user:update',
),
@@ -638,4 +638,4 @@
'shortname' => MOODLE_OFFICIAL_MOBILE_SERVICE,
'downloadfiles' => 1
),
-);
+);
Oops, something went wrong.

0 comments on commit c70b985

Please sign in to comment.