]> git.mjollnir.org Git - moodle.git/commit
accesslib: get_context_users_bycap() draft for course participants...
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:07:45 +0000 (07:07 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:07:45 +0000 (07:07 +0000)
commit4d8ab2749e3e99a6d7ddc1a69532329983c3023a
tree659241b1b35240a71c2dadaa30f7601d01696854
parentfe3141e00b06376dbe6f34c9d6d11c7849f9699c
accesslib: get_context_users_bycap() draft for course participants...

Introducing get_context_users_bycap() which gets the data in
2 DB queries, takes around 10ms on my laptop, and returns
the records with a nice context property attached.

Note Note Note: right now, some user recs do not have a context
associated, so are _not_ returned. So this awaits Matt's fix
to contexts maintenance to be 100% accurate...
lib/accesslib.php