PHP Class Prado\Data\SqlMap\DataMapper\TSqlMapTypeHandlerRegistry

Since: 3.1
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
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' ) : TSqlMapTypeHandler
getTypeHandler ( $class ) : TSqlMapTypeHandler
registerTypeHandler ( TSqlMapTypeHandler $handler )

Method Details

convertToType() public méthode

Converts the value to given type using PHP's settype() function.
public convertToType ( $type, $value ) : mixed
Résultat mixed type casted value.

createInstanceOf() public méthode

Creates a new instance of a particular class (for PHP primative types, their corresponding default value for given type is used).
public createInstanceOf ( $type = '' ) : mixed
Résultat mixed default type value, if no type is specified null is returned.

getDbTypeHandler() public méthode

public getDbTypeHandler ( $dbType = 'NULL' ) : TSqlMapTypeHandler
Résultat TSqlMapTypeHandler type handler for give database field type.

getTypeHandler() public méthode

public getTypeHandler ( $class ) : TSqlMapTypeHandler
Résultat TSqlMapTypeHandler type handler

registerTypeHandler() public méthode

public registerTypeHandler ( TSqlMapTypeHandler $handler )
$handler TSqlMapTypeHandler