mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 08:56:36 +02:00
MDL-36267 corrected phpdocs for get_fast_modinfo()
This commit is contained in:
parent
8ccaa296fa
commit
9428a1545d
1 changed files with 6 additions and 2 deletions
|
@ -1267,9 +1267,13 @@ class cm_info extends stdClass {
|
||||||
* Returns reference to full info about modules in course (including visibility).
|
* Returns reference to full info about modules in course (including visibility).
|
||||||
* Cached and as fast as possible (0 or 1 db query).
|
* Cached and as fast as possible (0 or 1 db query).
|
||||||
*
|
*
|
||||||
|
* use get_fast_modinfo($courseid, 0, true) to reset the static cache for particular course
|
||||||
|
* use get_fast_modinfo(0, 0, true) to reset the static cache for all courses
|
||||||
|
*
|
||||||
* @uses MAX_MODINFO_CACHE_SIZE
|
* @uses MAX_MODINFO_CACHE_SIZE
|
||||||
* @param int|stdClass $courseorid object or 'reset' string to reset caches, modinfo may be updated in db
|
* @param int|stdClass $courseorid object from DB table 'course' or just a course id
|
||||||
* @param int $userid Set 0 (default) for current user
|
* @param int $userid User id to populate 'uservisible' attributes of modules and sections.
|
||||||
|
* Set to 0 for current user (default)
|
||||||
* @param bool $resetonly whether we want to get modinfo or just reset the cache
|
* @param bool $resetonly whether we want to get modinfo or just reset the cache
|
||||||
* @return course_modinfo|null Module information for course, or null if resetting
|
* @return course_modinfo|null Module information for course, or null if resetting
|
||||||
*/
|
*/
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue