Index Documentation

DbType
in package

FinalYes

Map of common database types.

Table of Contents

Constants

AUTO  = 0
Automatically detect the type. Should be used in combination with DbType::detect.
BLOB  = 5
Binary blob data.
FLOAT  = 3
A double precision floating point.
INTEGER  = 2
An integer type.
NULL  = 1
Represents a NULL value. If this type is specified, the value it was associated with should be overriden with NULL.
STRING  = 4
A textual string.

Methods

detect()  : int
Detects the DbType of the passed argument. Should be used for DbType::AUTO.

Constants

AUTO

Automatically detect the type. Should be used in combination with DbType::detect.

public int AUTO = 0

BLOB

Binary blob data.

public int BLOB = 5

FLOAT

A double precision floating point.

public int FLOAT = 3

INTEGER

An integer type.

public int INTEGER = 2

NULL

Represents a NULL value. If this type is specified, the value it was associated with should be overriden with NULL.

public int NULL = 1

STRING

A textual string.

public int STRING = 4

Methods

detect()

Detects the DbType of the passed argument. Should be used for DbType::AUTO.

public static detect(mixed $value) : int
Parameters
$value : mixed

A value of unknown type.

Return values
int

DbType of the value passed in the argument.


        
On this page

Search results