Search moodle.org's
Developer Documentation

See Release Notes

  • Bug fixes for general core bugs in 4.3.x will end 7 October 2024 (12 months).
  • Bug fixes for security issues in 4.3.x will end 21 April 2025 (18 months).
  • PHP version: minimum PHP 8.0.0 Note: minimum PHP version has increased since Moodle 4.1. PHP 8.2.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