Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 3.10.x will end 8 November 2021 (12 months).
  • Bug fixes for security issues in 3.10.x will end 9 May 2022 (18 months).
  • PHP version: minimum PHP 7.2.0 Note: minimum PHP version has increased since Moodle 3.8. PHP 7.3.x and 7.4.x are supported too.

Database column information.

Copyright: 2008 Petr Skoda (http://skodak.org)
License: http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
File Size: 143 lines (5 kb)
Included or required: 1 time
Referenced: 0 times
Includes or requires: 0 files

Defines 1 class

database_column_info:: (4 methods):
  __set()
  __get()
  __isset()
  __construct()


Class: database_column_info  - X-Ref

Detailed database field information.

It is based on the adodb library's ADOFieldObject object.
'column' does mean 'the field' here.

__set($name, $value)   X-Ref
Magic set function.  This is a read only object and you aren't allowed to write to any variables.

param: string $name ignored.
param: mixed $value ignored.

__get($variablename)   X-Ref
Magic get function.

param: string $variablename variable name to return the value of.
return: mixed The variable contents.

__isset($variablename)   X-Ref
Magic isset function.

param: string $variablename The name of the property to test if isset().
return: bool Whether the value is set or not.

__construct($data)   X-Ref
Constructor

param: mixed $data object or array with properties