Search moodle.org's
Developer Documentation

See Release Notes
Long Term Support Release

  • Bug fixes for general core bugs in 4.1.x will end 13 November 2023 (12 months).
  • Bug fixes for security issues in 4.1.x will end 10 November 2025 (36 months).
  • PHP version: minimum PHP 7.4.0 Note: minimum PHP version has increased since Moodle 4.0. PHP 8.0.x is 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