Moodle PHP Documentation 4.5
Moodle 4.5dev (Build: 20240606) (d3ae1391abe)
mod_glossary\local\concept_cache Class Reference

Concept caching for glossary filter. More...

Static Public Member Functions

static cm_updated (\core\event\course_module_updated $event)
 Event observer, do not call directly.
 
static get_concepts ($courseid)
 Get all concepts that should be linked in the given course.
 
static reset_caches ($phpunitreset=false)
 Reset concept related caches.
 
static reset_course_muc ($courseid)
 Reset the cache for course concepts.
 
static reset_global_muc ()
 Reset the cache for global concepts.
 
static reset_glossary ($glossary)
 Utility method to purge caches related to given glossary.
 

Static Protected Member Functions

static fetch_concepts (array $glossaries)
 Fetch concepts for given glossaries.
 
static get_course_concepts ($courseid)
 Get all linked concepts from course.
 
static get_global_concepts ()
 Get all linked global concepts.
 

Detailed Description

Concept caching for glossary filter.

License
http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Member Function Documentation

◆ cm_updated()

static mod_glossary\local\concept_cache::cm_updated ( \core\event\course_module_updated $event)
static

Event observer, do not call directly.

Parameters
core\event\course_module_updated$event

◆ fetch_concepts()

static mod_glossary\local\concept_cache::fetch_concepts ( array $glossaries)
staticprotected

Fetch concepts for given glossaries.

Parameters
int[]$glossaries
Return values
array

◆ get_concepts()

static mod_glossary\local\concept_cache::get_concepts ( $courseid)
static

Get all concepts that should be linked in the given course.

Parameters
int$courseid
Return values
arraywith two elements - array of glossaries and concepts for each glossary

◆ get_course_concepts()

static mod_glossary\local\concept_cache::get_course_concepts ( $courseid)
staticprotected

Get all linked concepts from course.

Parameters
int$courseid
Return values
array

◆ get_global_concepts()

static mod_glossary\local\concept_cache::get_global_concepts ( )
staticprotected

Get all linked global concepts.

Return values
array

◆ reset_caches()

static mod_glossary\local\concept_cache::reset_caches ( $phpunitreset = false)
static

Reset concept related caches.

Parameters
bool$phpunitreset

◆ reset_course_muc()

static mod_glossary\local\concept_cache::reset_course_muc ( $courseid)
static

Reset the cache for course concepts.

Parameters
int$courseid

◆ reset_glossary()

static mod_glossary\local\concept_cache::reset_glossary ( $glossary)
static

Utility method to purge caches related to given glossary.

Parameters
stdClass$glossary

The documentation for this class was generated from the following file: