class PropelTypes
A class that maps PropelTypes to PHP native types and PDO types.
Support for Creole types have been removed as this DBAL library is no longer
supported by the Propel project.
Constants
CHAR |
|
VARCHAR |
|
LONGVARCHAR |
|
CLOB |
|
CLOB_EMU |
|
NUMERIC |
|
DECIMAL |
|
TINYINT |
|
SMALLINT |
|
INTEGER |
|
BIGINT |
|
REAL |
|
FLOAT |
|
DOUBLE |
|
BINARY |
|
VARBINARY |
|
LONGVARBINARY |
|
BLOB |
|
DATE |
|
TIME |
|
TIMESTAMP |
|
BU_DATE |
|
BU_TIMESTAMP |
|
BOOLEAN |
|
BOOLEAN_EMU |
|
OBJECT |
|
PHP_ARRAY |
|
ENUM |
|
CHAR_NATIVE_TYPE |
|
VARCHAR_NATIVE_TYPE |
|
LONGVARCHAR_NATIVE_TYPE |
|
CLOB_NATIVE_TYPE |
|
CLOB_EMU_NATIVE_TYPE |
|
NUMERIC_NATIVE_TYPE |
|
DECIMAL_NATIVE_TYPE |
|
TINYINT_NATIVE_TYPE |
|
SMALLINT_NATIVE_TYPE |
|
INTEGER_NATIVE_TYPE |
|
BIGINT_NATIVE_TYPE |
|
REAL_NATIVE_TYPE |
|
FLOAT_NATIVE_TYPE |
|
DOUBLE_NATIVE_TYPE |
|
BINARY_NATIVE_TYPE |
|
VARBINARY_NATIVE_TYPE |
|
LONGVARBINARY_NATIVE_TYPE |
|
BLOB_NATIVE_TYPE |
|
BU_DATE_NATIVE_TYPE |
|
DATE_NATIVE_TYPE |
|
TIME_NATIVE_TYPE |
|
TIMESTAMP_NATIVE_TYPE |
|
BU_TIMESTAMP_NATIVE_TYPE |
|
BOOLEAN_NATIVE_TYPE |
|
BOOLEAN_EMU_NATIVE_TYPE |
|
OBJECT_NATIVE_TYPE |
|
PHP_ARRAY_NATIVE_TYPE |
|
ENUM_NATIVE_TYPE |
|
Methods
static string |
getPhpNative(string $mappingType)
Returns the native PHP type which corresponds to the mapping type provided. |
|
static integer |
getPDOType($type)
Returns the PDO type (PDO::PARAM_* constant) value. |
|
static string |
getPdoTypeString($type)
Returns the PDO type ('PDO::PARAM_*' constant) name. |
|
static array |
getPropelTypes()
Returns an array of mapping types. |
|
static boolean |
isTemporalType(string $type)
Returns whether or not the given type is a temporal type. |
|
static boolean |
isTextType(string $mappingType)
Returns whether or not the given type is a text type. |
|
static boolean |
isNumericType(string $mappingType)
Returns whether or not the given type is a numeric type. |
|
static boolean |
isBooleanType(string $mappingType)
Returns whether or not this column is a boolean type. |
|
static boolean |
isLobType(string $mappingType)
Returns whether or not this column is a lob/blob type. |
|
static boolean |
isPhpPrimitiveType(string $phpType)
Returns whether or not a passed-in PHP type is a primitive type. |
|
static boolean |
isPhpPrimitiveNumericType(string $phpType)
Returns whether or not a passed-in PHP type is a primitive numeric type. |
|
static boolean |
isPhpObjectType(string $phpType)
Returns whether or not a passed-in PHP type is an object. |
|
static boolean |
isPhpArrayType(string $phpType)
Convenience method to indicate whether a passed-in PHP type is an array. |
Details
at line 212
static public string
getPhpNative(string $mappingType)
Returns the native PHP type which corresponds to the mapping type provided.
Use in the base object class generation.
at line 222
static public integer
getPDOType($type)
Returns the PDO type (PDO::PARAM_* constant) value.
at line 232
static public string
getPdoTypeString($type)
Returns the PDO type ('PDO::PARAM_*' constant) name.
at line 242
static public array
getPropelTypes()
Returns an array of mapping types.
at line 253
static public boolean
isTemporalType(string $type)
Returns whether or not the given type is a temporal type.
at line 270
static public boolean
isTextType(string $mappingType)
Returns whether or not the given type is a text type.
at line 291
static public boolean
isNumericType(string $mappingType)
Returns whether or not the given type is a numeric type.
at line 312
static public boolean
isBooleanType(string $mappingType)
Returns whether or not this column is a boolean type.
at line 326
static public boolean
isLobType(string $mappingType)
Returns whether or not this column is a lob/blob type.
at line 341
static public boolean
isPhpPrimitiveType(string $phpType)
Returns whether or not a passed-in PHP type is a primitive type.
at line 352
static public boolean
isPhpPrimitiveNumericType(string $phpType)
Returns whether or not a passed-in PHP type is a primitive numeric type.
at line 363
static public boolean
isPhpObjectType(string $phpType)
Returns whether or not a passed-in PHP type is an object.
at line 374
static public boolean
isPhpArrayType(string $phpType)
Convenience method to indicate whether a passed-in PHP type is an array.