|
Moodle
2.2.1
http://www.collinsharper.com
|
Go to the source code of this file.
Data Structures | |
| class | course_modinfo |
| class | cm_info |
| class | cached_cm_info |
Namespaces | |
| namespace | core |
Functions | |
| get_fast_modinfo (&$course, $userid=0) | |
| rebuild_course_cache ($courseid=0, $clearonly=false) | |
| get_fast_modinfo | ( | &$ | course, |
| $ | userid = 0 |
||
| ) |
Returns reference to full info about modules in course (including visibility). Cached and as fast as possible (0 or 1 db query).
object object moodle_database MAX_MODINFO_CACHE_SIZE
| mixed | $course | object or 'reset' string to reset caches, modinfo may be updated in db |
| int | $userid | Defaults to current user id |
Definition at line 1074 of file modinfolib.php.


| rebuild_course_cache | ( | $ | courseid = 0, |
| $ | clearonly = false |
||
| ) |
Rebuilds the cached list of course activities stored in the database
| int | $courseid | - id of course to rebuild, empty means all |
| boolean | $clearonly | - only clear the modinfo fields, gets rebuild automatically on the fly |
Definition at line 1122 of file modinfolib.php.

