MDL-17837 opt limit resultsets returned by some get_xxxx_users() function.

This commit is contained in:
stronk7
2009-01-14 17:44:46 +00:00
parent ac6e14ff79
commit 22fc88f88b
2 changed files with 19 additions and 12 deletions
+5 -2
View File
@@ -210,11 +210,14 @@ function search_users($courseid, $groupid, $searchtext, $sort='', $exceptions=''
* @uses SITEID
* @deprecated Use {@link get_course_users()} instead.
* @param string $fields A comma separated list of fields to be returned from the chosen table.
* @param string $exceptions A comma separated list of user->id to be skiped in the result returned by the function
* @param int $limitfrom return a subset of records, starting at this point (optional, required if $limitnum is set).
* @param int $limitnum return a subset comprising this many records (optional, required if $limitfrom is set).
* @return object|false {@link $USER} records or false if error.
*/
function get_site_users($sort='u.lastaccess DESC', $fields='*', $exceptions='') {
function get_site_users($sort='u.lastaccess DESC', $fields='*', $exceptions='', $limitfrom='', $limitnum='') {
return get_course_users(SITEID, $sort, $exceptions, $fields);
return get_course_users(SITEID, $sort, $exceptions, $fields, $limitfrom, $limitnum);
}