Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.2.x will end 22 April 2024 (12 months).
  • Bug fixes for security issues in 4.2.x will end 7 October 2024 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.1.x is supported too.
/lib/db/
FolderUp one level  
Fileaccess.php                  [source] [2694 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] [576 lines]   Core cache definitions.
Fileevents.php                  [source] [80 lines]    Definition of core event observers.
Fileinstall.php                 [source] [338 lines]   This file is executed right after the install.xml For more information, take a look to the documentation available: - Upgrade API: {@link https://moodledev.io/docs/guides/upgrade}
Filelog.php                     [source] [67 lines]    Definition of log events associated with the current component
Filemessageinbound_handlers.php [source] [32 lines]    Inbound Message Handlers for core.
Filemessages.php                [source] [180 lines]   Defines message providers (types of messages being sent)
Filerenamedclasses.php          [source] [89 lines]    This file contains mappings for classes that have been renamed so that they meet the requirements of the autoloader.
Fileservices.php                [source] [3081 lines]  Core external functions and service definitions.
Filetag.php                     [source] [90 lines]    Tag area definitions
Filetasks.php                   [source] [450 lines]   Definition of core scheduled tasks.
Fileupgrade.php                 [source] [3319 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] [1826 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!)