Commit Graph

20 Commits

Author SHA1 Message Date
toyomoyo acf2052b05 merged fix for MDL-7592, get_course_students() bug 2006-12-08 02:22:25 +00:00
moodler f94ced1010 Fix sort on get_teacher to get the most senior teacher 2006-09-25 06:15:31 +00:00
moodler 1d546bb125 Fix for get_users_by_capability() so the caller can choose whether
they want users with doanything included or not
2006-09-25 03:00:50 +00:00
toyomoyo dc5586907d replacing deprecated calls and references to capability calls 2006-09-20 09:00:04 +00:00
toyomoyo d76a5a7fed replacing references to user_* tables 2006-09-19 01:44:33 +00:00
toyomoyo 38079c83eb removing get_creators(), no more reference to the function 2006-09-18 12:04:16 +00:00
toyomoyo 492e507f7b no more refernece to remove_creator() function 2006-09-18 11:55:04 +00:00
toyomoyo 102d890c14 remove_admin() no longer referenced 2006-09-18 10:47:09 +00:00
toyomoyo 6eccd8f099 add_creator no longer in use 2006-09-18 10:18:26 +00:00
skodak 4e5f3064bf role assignment and unassignment now propagates to metacourses 2006-09-17 08:42:42 +00:00
moodler 888fb649a8 Converted deprecated get_teacher() to use new tables 2006-09-16 13:55:30 +00:00
skodak 8f8ead90c7 fixed unenrol_student() - now uses roles instead of user_students table 2006-09-16 12:05:31 +00:00
skodak 7b6a42f5b8 coverted deprecated get_group_students() to use legacy capability instead of user_students table 2006-09-16 06:22:32 +00:00
tjhunt 36075e092d MDL-6041 - Proper fix that eliminates the magic number 99999 when getting lists of studnets. Now, there is no arbitrary upper limit in the datalib functions, and sensible upper limits on pages that display lists of users. However, if you try to get all the site students, then get_students prints a warning in debug mode, telling you that you need to rethink your code.
Also a few more ISNULL()s eliminated.

And a typo role_assignment -> role_assignments.
2006-09-15 14:32:35 +00:00
toyomoyo 71dea306b4 changing lib functions to work with roles, some functions might not work as expected now 2006-09-15 09:08:48 +00:00
moodler 613bbd7c2b Moving deprecated functions out of datalib.php
Many of these still need updating to remove all dependence on user_xxx tables
2006-09-10 07:07:52 +00:00
moodler c2da075758 Further reductions in logic to deprectaed functions 2006-09-04 08:31:07 +00:00
skodak 6d574c33b4 fixed missing global $USER 2006-09-04 08:01:57 +00:00
toyomoyo 2acc290c17 legacy functions to use 4th parameter to by pass doanything capability 2006-09-04 04:50:12 +00:00
moodler c4d0753b25 Moving deprecated functions to deprecatedlib.php from moodlelib.php and
some cleanups around the place.

Many of the functions in deprecatedlib.php have been rewritten to work with
the new roles and capabilities so that they can still work as well as possible.
2006-09-03 08:10:10 +00:00