datalib: get_categories() returns context, supports !shallow
commit40fb8aa69ab25afd018300467db3c8c3f216c90c
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:27:20 +0000 (19 07:27 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:27:20 +0000 (19 07:27 +0000)
treee50936d95e0877ca407ca91b4fa7c9e8b5a2fca1
parentc5d13b689f39ccd32b184b551da6835fb33f5b21
datalib: get_categories() returns context, supports !shallow

With this patch, get_categories() now adds a nice context
sub-object to the returned object, which means callers can
save DB traffic.

It now also supports "deep" retrievals, which means we can
rewrite the course categories display pages to avoid
costly recursion.
lib/datalib.php