class DataType (View source)

The ColumnType class.

The types data were referenced from: https://docs.google.com/document/d/168GnMgXb8afOby1n9iLQXzu-PWujs-HxTv5YbEvmu-4/edit

Constants

BOOLEAN

CHAR

VARCHAR

BIT

BIT_VARYING

INTEGER

SMALLINT

DECIMAL

NUMERIC

FLOAT

REAL

DOUBLE

DATE

TIME

TIMESTAMP

INTERVAL

CHARACTER

LARGE

OBJECT_BINARY

LARGE_OBJECT

TEXT

LONGTEXT

TINYINT

DATETIME

Properties

static array $typeDefinitions "Default Length", "Default Value", "PHP Type"

Methods

static DataType
getInstance(string $driver)

getInstance

static integer
getLength(string $type)

getLength

static string
getDefaultValue(string $type)

getDefaultValue

static string
getPhpType(string $type)

getPhpType

static string
getType(string $type)

getType

Details

at line line 116
static DataType getInstance(string $driver)

getInstance

Parameters

string $driver

Return Value

DataType

at line line 137
static integer getLength(string $type)

getLength

Parameters

string $type

Return Value

integer

at line line 149
static string getDefaultValue(string $type)

getDefaultValue

Parameters

string $type

Return Value

string

at line line 161
static string getPhpType(string $type)

getPhpType

Parameters

string $type

Return Value

string

at line line 198
static string getType(string $type)

getType

Parameters

string $type

Return Value

string