Moodle APIs 3.9
Moodle 3.9.13+ (Build: 20220325)
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::lock::lock_factory
Exceptions
coding_exception

◆ 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: