]> git.mjollnir.org Git - moodle.git/commit
Some changes to user database functions:
authorgustav_delius <gustav_delius>
Sat, 21 Aug 2004 12:41:40 +0000 (12:41 +0000)
committergustav_delius <gustav_delius>
Sat, 21 Aug 2004 12:41:40 +0000 (12:41 +0000)
commit900df8b6a50629d8a0bd0209907945aff6be5b72
tree630e457bbdca8a07e1410f089eb954b9bd397e1a
parent6b5f64d24856706e46a7d557ca45dd03245ee6b8
Some changes to user database functions:

1) get_course_students, get_course_users and count_course_students when called with course=site will now use get_site_users instead of get_users. This I believe was the consensus reached in the discussions of how front-page activities should behave.

2) all functions can handle a list of exceptions now.

3) get_site_users now returns users in the order admins, teachers, students. Similarly for get_course_users. This makes the sorting bug 1727 a bit more bearable

4) new function search_users

The whole thing is really a mess because each function has slightly different conventions for its arguments. But the beta is too close to tidy this up now.
lib/datalib.php