Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
Static Public Member Functions | Static Protected Member Functions | List of all members
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. More...
 
static get_concepts ($courseid)
 Get all concepts that should be linked in the given course. More...
 
static reset_caches ($phpunitreset=false)
 Reset concept related caches. More...
 
static reset_course_muc ($courseid)
 Reset the cache for course concepts. More...
 
static reset_global_muc ()
 Reset the cache for global concepts.
 
static reset_glossary ($glossary)
 Utility method to purge caches related to given glossary. More...
 

Static Protected Member Functions

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

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: