Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
modinfolib.php File Reference

Classes

class  cached_cm_info
 Class that is the return value for the _get_coursemodule_info module API function. More...
 
class  cm_info
 Data about a single module on a course. More...
 
class  course_modinfo
 Information about a course that is cached in the course table 'modinfo' field (and then in memory) in order to reduce the need for other database queries. More...
 
class  section_info
 Data about a single section on a course. More...
 

Functions

 get_course_and_cm_from_cmid ($cmorid, $modulename='', $courseorid=0, $userid=0)
 Efficiently retrieves the $course (stdclass) and $cm (cm_info) objects, given a cmid.
 
 get_course_and_cm_from_instance ($instanceorid, $modulename, $courseorid=0, $userid=0)
 Efficiently retrieves the $course (stdclass) and $cm (cm_info) objects, given an instance id or record and module name.
 
 get_fast_modinfo ($courseorid, $userid=0, $resetonly=false)
 Returns reference to full info about modules in course (including visibility).
 
moodle_database rebuild_course_cache (int $courseid=0, bool $clearonly=false, bool $partialrebuild=false)
 Rebuilds or resets the cached list of course activities stored in MUC.