Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is supported too.
/lib/classes/lock/
FolderUp one level  
Filedb_record_lock_factory.php      [source] [233 lines]   This is a db record locking factory.
Filefile_lock_factory.php           [source] [211 lines]   Flock based file locking factory. The file lock factory returns file locks locked with the flock function. Works OK, except on some NFS, exotic shared storage and exotic server OSes (like windows). On windows, a second attempt to get a lock will block indefinitely instead of timing out.
Fileinstallation_lock_factory.php   [source] [133 lines]   Lock factory for use during installation.
Filelock.php                        [source] [144 lines]   Class representing a lock The methods available for a specific lock type are only known by it's factory.
Filelock_config.php                 [source] [104 lines]   Lock configuration class, used to get an instance of the currently configured lock factory.
Filelock_factory.php                [source] [108 lines]   Defines abstract factory class for generating locks.
Filelock_utils.php                  [source] [76 lines]    
Filemysql_lock_factory.php          [source] [196 lines]   MySQL / MariaDB locking factory.
Filepostgres_lock_factory.php       [source] [233 lines]   Postgres advisory locking factory.
Filetiming_wrapper_lock_factory.php [source] [197 lines]