Moodle APIs  3.8
Moodle 3.8.6 (Build: 20201109)
Static Public Member Functions | List of all members
core\lock\lock_config Class Reference

Static Public Member Functions

static get_lock_factory (string $type)
 Get an instance of the currently configured locking subclass. More...
 
static get_lock_factory_class ()
 Get the currently configured locking subclass. More...
 

Member Function Documentation

◆ get_lock_factory()

static core\lock\lock_config::get_lock_factory ( string  $type)
static

Get an instance of the currently configured locking subclass.

Parameters
string$type- Unique namespace for the locks generated by this factory. e.g. core_cron
Return values
core

◆ get_lock_factory_class()

static core\lock\lock_config::get_lock_factory_class ( )
static

Get the currently configured locking subclass.

Return values
stringclass name
Exceptions
coding_exception

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