CollectionType
class CollectionType extends Type (View source)
The Collection type.
Constants
ID |
|
INTID |
|
CUSTOMID |
|
BOOL |
|
BOOLEAN |
|
INT |
|
INTEGER |
|
FLOAT |
|
STRING |
|
DATE |
|
KEY |
|
TIMESTAMP |
|
BINDATA |
|
BINDATAFUNC |
|
BINDATABYTEARRAY |
|
BINDATAUUID |
|
BINDATAUUIDRFC4122 |
|
BINDATAMD5 |
|
BINDATACUSTOM |
|
HASH |
|
COLLECTION |
|
OBJECTID |
|
RAW |
|
Methods
Converts a value from its PHP representation to its database representation of this type.
Converts a value from its database representation to its PHP representation of this type.
Get a Type instance based on the type of the passed php variable.
Overrides an already defined type to use a different implementation.
Get the types array map which holds all registered types and the corresponding type class
Details
at line 16
mixed
convertToDatabaseValue(mixed $value)
Converts a value from its PHP representation to its database representation of this type.
at line 24
mixed
convertToPHPValue(mixed $value)
Converts a value from its database representation to its PHP representation of this type.
static
registerType(string $name, string $class)
Register a new type in the type map.
static
getTypeFromPHPVariable(mixed $variable)
Get a Type instance based on the type of the passed php variable.
static
addType(string $name, string $className)
Adds a custom type to the type map.
static
overrideType(string $name, string $className)
Overrides an already defined type to use a different implementation.
static
getTypesMap()
Get the types array map which holds all registered types and the corresponding type class