Data Manipulation API from MOODLE




 
            There are people who are curious on how MOODLE LMS works and operates. Data manipulation API describes the functions available to access data in the MOODLE database. Developers should use these functions exclusively when retrieving or modifying MOODLE database content. These functions provide a high level of abstraction and guarantee that the database manipulated will work against different RDBMSes (MOODLE, 2012). The functions used in this Data Manipulation API apply for MOODLE 2.0 and higher versions of MOODLE.
            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

. A THESIS PROPOSAL .

.don lester paul cavan . rea mae donato . oliver sespeñe.
Powered by Blogger.

Copyright © / Thesis

Template by : Urang-kurai / powered by :blogger