Moodle APIs 4.1
Moodle 4.1.9+ (Build: 20240402)
lib Directory Reference

Directories

 ajax
 
 antivirus
  
 
 behat
 
 classes
 
 db
 
 ddl
 
 dml
 
 dtl
 
 editor
  
 
 external
 
 filebrowser
 
 filestorage
 
 form
 
 grade
 
 mlbackend
  
 
 phpunit
 
 portfolio
 
 table
  
 
 testing
 
 tests
 
 userkey
  
 
 xapi
  
 
 xmldb
 

Files

 accesslib.php
 This file contains functions for managing user access.
 
 adminlib.php
 Functions and classes used during installation, upgrades and for admin settings.
 
 authlib.php
 Multiple plugin authentication Support library.
 
 badgeslib.php
 Contains classes, functions and constants used in badges.
 
 blocklib.php
 Block Class and Functions.
 
 clilib.php
 Command line utility functions and classes.
 
 completionlib.php
 Contains classes, functions and constants used during the tracking of activity completion for users.
 
 componentlib.class.php
 This library includes all the necessary stuff to use the one-click download and install feature of Moodle, used to keep updated some items like languages, pear, enviroment... i.e, components.
 
 conditionlib.php
 DO NOT INCLUDE THIS FILE.
 
 configonlylib.php
 Minimalistic library, usable even when no other moodle libs are loaded.
 
 cronlib.php
 Cron functions.
 
 csslib.php
 This file contains CSS file serving functions.
 
 csvlib.class.php
 This is a one-line short description of the file.
 
 customcheckslib.php
 This is a place to put custom environment checks, if there is not a better place.
 
 dataformatlib.php
 dataformatlib.php - Contains core dataformat related functions.
 
 datalib.php
 Library of functions for database manipulation.
 
 ddllib.php
 This library includes all the required functions used to handle the DB structure (DDL) independently of the underlying RDBMS in use.
 
 deprecatedlib.php
 deprecatedlib.php - Old functions retained only for backward compatibility
 
 dmllib.php
 This library contains all the Data Manipulation Language (DML) functions used to interact with the DB.
 
 dtllib.php
 DTL == Database Transfer Library.
 
 editorlib.php
 Utility classes and functions for text editor integration.
 
 emptyfile.php
 This is an empty file.
 
 enrollib.php
 This library includes the basic parts of enrol api.
 
 environmentlib.php
 This library includes all the necessary stuff to execute some standard tests of required versions and libraries to run Moodle.
 
 excellib.class.php
 Excel writer abstraction layer.
 
 externallib.php
 Support for external API.
 
 filelib.php
 Functions for file handling.
 
 filterlib.php
 Library functions for managing text filter plugins.
 
 flickrclient.php
 Provides flickr_client class.
 
 formslib.php
 formslib.php - library of classes for creating forms in Moodle, based on PEAR QuickForms.
 
 gdlib.php
 gdlib.php - Collection of routines in Moodle related to processing images using GD
 
 googleapi.php
 Simple implementation of some Google API functions for Moodle.
 
 gradelib.php
 Library of functions for gradebook - both public and internal.
 
 grouplib.php
 
 installlib.php
 Functions to support installation process.
 
 jslib.php
 This file contains various javascript related functions, all functions here are self contained and can be used in ABORT_AFTER_CONFIG scripts.
 
 licenselib.php
 A namespace contains license specific functions.
 
 listlib.php
 Classes for displaying and editing a nested list of items.
 
 mathslib.php
 @subpackage lib
 
 messagelib.php
 Functions for interacting with the message system.
 
 modinfolib.php
 modinfolib.php - Functions/classes relating to cached information about module instances on a course.
 
 moodlelib.php
 moodlelib.php - Moodle main library
 
 myprofilelib.php
 Defines core nodes for my profile navigation tree.
 
 navigationlib.php
 This file contains classes used to manage the navigation structures within Moodle.
 
 oauthlib.php
 OAuth helper class.
 
 odslib.class.php
 ODS file writer.
 
 outputactions.php
 Classes representing JS event handlers, used by output components.
 
 outputcomponents.php
 Classes representing HTML elements, used by $OUTPUT methods.
 
 outputfactories.php
 Interface and classes for creating appropriate renderers for various parts of Moodle.
 
 outputfragmentrequirementslib.php
 Library functions to facilitate the use of JavaScript in Moodle.
 
 outputlib.php
 Functions for generating the HTML that Moodle should output.
 
 outputrenderers.php
 Classes for rendering HTML output for Moodle.
 
 outputrequirementslib.php
 Library functions to facilitate the use of JavaScript in Moodle.
 
 pagelib.php
 This file contains the moodle_page class.
 
 pdflib.php
 pdflib.php - Moodle PDF library
 
 phpminimumversionlib.php
 A set of PHP-compatible convenience functions to check Moodle minimum PHP version in a unified place.
 
 plagiarismlib.php
 plagiarismlib.php - Contains core Plagiarism related functions.
 
 portfoliolib.php
 This file contains all global functions to do with manipulating portfolios.
 
 questionlib.php
 Code for handling and processing questions.
 
 recaptchalib_v2.php
 This is a PHP library that handles calling reCAPTCHA v2.
 
 resourcelib.php
 Recourse module like helper functions.
 
 rsslib.php
 This file contains all the common stuff to be used in RSS System.
 
 searchlib.php
 @subpackage search
 
 sessionlib.php
 @subpackage session
 
 setuplib.php
 These functions are required very early in the Moodle setup process, before any of the main libraries are loaded.
 
 soaplib.php
 Web services wrapper library script.
 
 statslib.php
 @subpackage stats
 
 tablelib.php
 @subpackage lib
 
 tokeniserlib.php
 Based on Drupal's search.module version 1.224.
 
 upgradelib.php
 Various upgrade/install related functions and classes.
 
 uploadlib.php
 uploadlib.php - This class handles all aspects of fileuploading
 
 wasmlib.php
 This file contains various Web Assembly related functions, all functions here are self-contained and can be used in ABORT_AFTER_CONFIG scripts.
 
 webdavlib.php
 A Moodle-modified WebDAV client, based on webdav_client v0.1.5, a php based webdav client class.
 
 weblib.php
 Library of functions for web output.
 
 wiki_to_markdown.php
 Utility function to convert wiki-like to Markdown format.
 
 womenslib.php
 
 xmlize.php
 Code for parsing xml files.
 
 xsendfilelib.php
 X-Sendfile support.