In my theme, each top_level category represents a tab on the tab bar. I just upgrade to Moodle 2.4.
So in 2.4, I need a way to get a tree of the current user's courses (where the branches are the categories, and the courses are the leaves), since that I can't do this with the code in the subject header anymore in 2.4.
(I also can't seem to access the tracker right now for some reason, as I was hoping there was an estimation on when this issue might get solved.)
There is get_course_category_tree which gives us the tree structure for all courses, and then enrol_get_my_courses which gives me an array of the user's courses. I could go through and make a new tree structure that is the (logical) intersection of these two results, but that would be pretty bad:
-> I'd effectively be finding each course in the database twice
Is there a better solution readily available I just don't know about (I hope).