Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
dmllib.php File Reference

Classes

class  dml_connection_exception
 DML db connection exception - triggered if database not accessible. More...
 
class  dml_exception
 DML exception class, use instead of throw new moodle_exception() in dml code. More...
 
class  dml_missing_record_exception
 Caused by missing record that is required for normal operation. More...
 
class  dml_multiple_records_exception
 Caused by multiple records found in get_record() call. More...
 
class  dml_read_exception
 DML read exception - triggered by some SQL syntax errors, etc. More...
 
class  dml_sessionwait_exception
 DML db session wait exception - triggered when session lock request times out. More...
 
class  dml_transaction_exception
 DML transaction exception - triggered by problems related to DB transactions. More...
 
class  dml_write_exception
 DML write exception - triggered by some SQL syntax errors, etc. More...
 

Functions

stdClass setup_DB ()
 Sets up global $DB moodle_database instance.
 

Variables

const IGNORE_MISSING 0
 Return false if record not found, show debug warning if multiple records found.
 
const IGNORE_MULTIPLE 1
 Similar to IGNORE_MISSING but does not show debug warning if multiple records found, not recommended to be used.
 
const MUST_EXIST 2
 Indicates exactly one record must exist.