| Method Details |
convertToType
| public mixed convertToType |
(string $type , mixed $value ) |
Converts the value to given type using PHP's settype() function.
| Input |
| string | $type | PHP primative type. |
| mixed | $value | value to be casted |
| Output |
|
mixed
| type casted value. |
| Exception |
|
createInstanceOf
| public mixed createInstanceOf |
(string $type ) |
Creates a new instance of a particular class (for PHP primative types, their corresponding default value for given type is used).
| Input |
| string | $type | PHP type name |
| Output |
|
mixed
| default type value, if no type is specified null is returned. |
| Exception |
| throws | TSqlMapException if class name is not found. |
|
getDbTypeHandler
| Input |
| string | $dbType | database field type |
| Output |
|
TSqlMapTypeHandler
| type handler for give database field type. |
| Exception |
|
getTypeHandler
| Input |
| string | $class | type handler class name |
| Output |
|
TSqlMapTypeHandler
| type handler |
| Exception |
|
registerTypeHandler
| public void registerTypeHandler |
(TSqlMapTypeHandler $handler ) |
| Input |
| TSqlMapTypeHandler | $handler | registers a new type handler |
| Output |
| Exception |
|