Moodle  2.2.1
http://www.collinsharper.com
C:/xampp/htdocs/moodle/lib/modinfolib.php File Reference

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)

Function Documentation

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

Parameters:
mixed$courseobject or 'reset' string to reset caches, modinfo may be updated in db
int$useridDefaults to current user id
Returns:
course_modinfo Module information for course, or null if resetting

Definition at line 1074 of file modinfolib.php.

Here is the call graph for this function:

Here is the caller graph for this function:

rebuild_course_cache ( courseid = 0,
clearonly = false 
)

Rebuilds the cached list of course activities stored in the database

Parameters:
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.

Here is the call graph for this function:

Here is the caller graph for this function:

 All Data Structures Namespaces Files Functions Variables Enumerations