Moodle APIs 4.3
Moodle 4.3.6 (Build: 20240812)
|
Detailed database field information. More...
Public Member Functions | |
__construct ($data) | |
Constructor. | |
__get ($variablename) | |
Magic get function. | |
__isset ($variablename) | |
Magic isset function. | |
__set ($name, $value) | |
Magic set function. | |
Protected Attributes | |
array | $data |
The internal storage of column data. | |
Detailed database field information.
It is based on the adodb library's ADOFieldObject object. 'column' does mean 'the field' here.
Max length: character type - number of characters blob - number of bytes integer - number of digits float - digits left from floating point boolean - 1
Standardised one character column type, uppercased and enumerated as follows: R - counter (integer primary key) I - integers N - numbers (floats) C - characters and strings X - texts B - binary blobs L - boolean (1 bit) T - timestamp - unsupported D - date - unsupported
database_column_info::__construct | ( | $data | ) |
Constructor.
mixed | $data | object or array with properties |
database_column_info::__get | ( | $variablename | ) |
Magic get function.
string | $variablename | variable name to return the value of. |
mixed | The variable contents. |
coding_exception | You cannot request a variable that is not allowed. |
database_column_info::__isset | ( | $variablename | ) |
Magic isset function.
string | $variablename | The name of the property to test if isset(). |
bool | Whether the value is set or not. |
database_column_info::__set | ( | $name, | |
$value ) |
Magic set function.
This is a read only object and you aren't allowed to write to any variables.
string | $name | ignored. |
mixed | $value | ignored. |
coding_exception | You are not allowed to set data on database_column_info |