moodle/course
fmarier 9bb19e5827 course/lib: Cache get_categories() using a static variable (MDL-11938)
Some recursive functions call get_categories() repeatedly to get all of the
child categories of the current one.

This commit create a lazily-initialized cache of all of the categories so
that the database is only queried once to retrieve all of the categories.

It speeds up the both the homepage and the course edit page (where the
categories are displayed in combo boxes).
2007-12-17 04:49:27 +00:00
..
format Fixes MDL-12541 "Weeks course format - dates for each section should be marked up as heading". Merged. 2007-12-11 15:25:07 +00:00
import MDL-12133 validate() method tidying up; merged from MOODLE_19_STABLE 2007-11-23 22:15:07 +00:00
report MDL-11472 fixed harcoded mdl_ prefix in sql queries 2007-09-27 08:41:19 +00:00
category.php MDL-11800 improving previous commit; merged from MOODLE-19_STABLE 2007-12-15 12:05:54 +00:00
category_add_form.php MDL-4384, description for course categories 2007-08-15 08:28:40 +00:00
delete.php MDL-10870 All files updated to new build_navigation() method. 2007-08-17 11:18:58 +00:00
edit.php MDL-12409 - stop access to editing 'site course' with course edit form. 2007-12-03 12:23:24 +00:00
edit_form.php MDL-12133 validate() method tidying up; merged from MOODLE_19_STABLE 2007-11-23 22:15:07 +00:00
editcategory.php MDL-11543 Refactored editcategory and form 2007-10-10 06:01:54 +00:00
editcategory_form.php MDL-11543 Printing nice list of categories for parent category drop-down 2007-10-10 06:21:37 +00:00
editsection.html Merged editsection button alignment from stable 2007-04-01 15:18:06 +00:00
editsection.php MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
enrol.php MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
import.php MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
importstudents.html MDL-12581 fixed multiple xhtml strict; merged from MOODLE_19_STABLE 2007-12-15 16:06:09 +00:00
importstudents.php MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
index.php Fix for reopened bug MDL-7878, "Link identification and skipping" - includes site and course index.php. 2007-10-22 09:21:11 +00:00
info.php MDL-12433: course/info respect the $CFG->allowvisiblecoursesinhiddencategories setting 2007-12-07 00:30:21 +00:00
jumpto.php validate local redirection actions in jumpto.php SC#310 2006-09-11 06:47:38 +00:00
lib.php course/lib: Cache get_categories() using a static variable (MDL-11938) 2007-12-17 04:49:27 +00:00
loginas.php loginas: call check_enrolment_plugins() 2007-11-14 22:04:37 +00:00
mod.php MDL-10888: groupings - mod/workshop - add grouping support 2007-09-06 01:35:37 +00:00
mod_delete.html MDL-8062 1.3 Remove name attribute from <form> and fix focus everywhere - more changes ahead 2007-01-04 21:32:36 +00:00
modedit.php Merged from 1.9 2007-11-19 07:13:02 +00:00
moodleform_mod.php MDL-12133 validate() method tidying up; merged from MOODLE_19_STABLE 2007-11-23 22:15:07 +00:00
pending-reject.html MDL-8062 1.3 Remove name attribute from <form> and fix focus everywhere - more changes ahead 2007-01-04 21:32:36 +00:00
pending.php MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
recent.php MDL-11500 Catching empty $coursemod when viewhiddensection is false, + corrected type $coursemode => $coursemod 2007-10-05 05:40:56 +00:00
report.php MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
request.php MDL-10870 All files updated to new build_navigation() method. Most are untested, because they are not easily accessible within a moodle site. 2007-08-17 19:09:11 +00:00
request_form.php MDL-12133 validate() method tidying up; merged from MOODLE_19_STABLE 2007-11-23 22:15:07 +00:00
reset.php MDL-7028 rewritten course reset + forum role_unassign cleanup fixes; merged from MOODLE_19_STABLE 2007-11-29 14:43:04 +00:00
reset_form.php MDL-7028 rewritten course reset + forum role_unassign cleanup fixes; merged from MOODLE_19_STABLE 2007-11-29 14:43:04 +00:00
rest.php Merged from 1.7. 2006-11-22 07:36:41 +00:00
scales.php MDL-10544 placeholder for outcome edit forms grade/edit/outcome/ 2007-07-29 23:02:03 +00:00
search.php MDL-11167, admin blocks page should not show blocks not placed on course pages 2007-10-19 07:54:30 +00:00
unenrol.php MDL-11640 2007-10-09 12:49:54 +00:00
user.php Fix some whitespace. 2007-11-21 16:30:25 +00:00
view.php course/view: roleswitch checks moved to the course page 2007-09-19 07:06:44 +00:00