Метод | Описание | |
---|---|---|
convertToType ( $type, $value ) : mixed | Converts the value to given type using PHP's settype() function. | |
createInstanceOf ( $type = '' ) : mixed | Creates a new instance of a particular class (for PHP primative types, their corresponding default value for given type is used). | |
getDbTypeHandler ( $dbType = 'NULL' ) : |
||
getTypeHandler ( $class ) : |
||
registerTypeHandler ( |
public convertToType ( $type, $value ) : mixed | ||
Результат | mixed | type casted value. |
public createInstanceOf ( $type = '' ) : mixed | ||
Результат | mixed | default type value, if no type is specified null is returned. |
public getDbTypeHandler ( $dbType = 'NULL' ) : |
||
Результат | type handler for give database field type. |
public getTypeHandler ( $class ) : |
||
Результат | type handler |
public registerTypeHandler ( |
||
$handler |