Data definition API
In this page you'll access to the available functions under Moodle to be able to handle DB structures (tables, fields, indexes...).
In this page you'll access to the available functions under Moodle to be able to handle DB structures (tables, fields, indexes...).
This page describes the functions available to access data in the Moodle database. You should exclusively use these functions in order to retrieve or modify database content because these functions provide a high level of abstraction and guarantee that your database manipulation will work against different RDBMSes.
The Upgrade API is a core API which allows your plugin to manage features of its own installation, and upgrade. Every plugin includes a version which allows the Upgrade API to apply only the required changes.