|
|
All the function
calls are public methods of the $DB global object, then the user will import
these methods within functions with simple global $DB;(MOODLE, 2012).
This data manipulation API provides functions that retrieve and search records
from the database such as MOODLE_database::get_records() to get a number of records as an array of objects where all the
given conditions met, MOODLE_database::get_records_select() to get a number of records as an array of objects which match a
particular WHERE clause and many other functions that allows user to manipulate
data inside the MOODLE database.
0 comments:
Post a Comment