List of Field type

package salt\dao

 Methods

Guess type of a value from value content

guessType(mixed $value) : integer
Static

Parameters

$value

mixed

The value to guess

Returns

integerFieldType

 Constants

 

Field is a boolean : int with value 0 for FALSE, 1 for TRUE

BOOLEAN = 10 
 

Field is a DATE, DATETIME, TIMESTAMP or int or text field with format YYYYMMDD or YYMMDD, or any valid format

DATE = 40 

A valid format is a format that can be converted to a timestamp, so with year, month and day

 

integer Field is a number

NUMBER = 30 
 

Field is a text

TEXT = 20