Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 3.9.x will end* 10 May 2021 (12 months).
  • Bug fixes for security issues in 3.9.x will end* 8 May 2023 (36 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.
/lib/db/
FolderUp one level  
Fileaccess.php                  [source] [2562 lines]  Capability definitions for Moodle core.
Fileanalytics.php               [source] [116 lines]   Defines the built-in prediction models provided by the Moodle core.
Filecaches.php                  [source] [480 lines]   Core cache definitions.
Fileevents.php                  [source] [80 lines]    Definition of core event observers.
Fileinstall.php                 [source] [326 lines]   This file is executed right after the install.xml For more information, take a look to the documentation available: - Upgrade API: {@link http://docs.moodle.org/dev/Upgrade_API}
Filelog.php                     [source] [68 lines]    Definition of log events associated with the current component
Filemessageinbound_handlers.php [source] [32 lines]    Inbound Message Handlers for core.
Filemessages.php                [source] [145 lines]   Defines message providers (types of messages being sent)
Filerenamedclasses.php          [source] [48 lines]    This file contains mappings for classes that have been renamed so that they meet the requirements of the autoloader.
Fileservices.php                [source] [2839 lines]  Core external functions and service definitions.
Filetag.php                     [source] [90 lines]    Tag area definitions
Filetasks.php                   [source] [404 lines]   Definition of core scheduled tasks.
Fileupgrade.php                 [source] [2738 lines]  This file keeps track of upgrades to Moodle. Sometimes, changes between versions involve alterations to database structures and other major things that may break installations.
Fileupgradelib.php              [source] [1276 lines]  Upgrade helper functions This file is used for special upgrade functions - for example groups and gradebook. These functions must use SQL and database related functions only- no other Moodle API, because it might depend on db structures that are not yet present during upgrade. (Do not use functions from accesslib.php, grades classes or group functions at all!)