Class

DateTimeType

Package: Doctrine\DBAL\Types License: LGPL 2.1 Version: PHPBoost 5.2 - last update: 2013 01 01 Since: PHPBoost 4.0 - 2013 01 01 Link: https://www.doctrine-project.org Located at: io/db/dbms/Doctrine/DBAL/Types/DateTimeType.php

Type that maps an SQL DATETIME/TIMESTAMP to a PHP DateTime object.

Type
Extended by DateTimeType
Methods summary
public string
# getName( )

Gets the name of this type.

public
# getSqlDeclaration( array $fieldDeclaration, AbstractPlatform $platform )

Gets the SQL declaration snippet for a field of this type.

public mixed
# convertToDatabaseValue( mixed $value, AbstractPlatform $platform )

Converts a value from its PHP representation to its database representation of this type.

public mixed
# convertToPHPValue( mixed $value, AbstractPlatform $platform )

Converts a value from its database representation to its PHP representation of this type.

Constants inherited from Type
CODE_BOOL, CODE_INT, CODE_LOB, CODE_NULL, CODE_STR
Properties inherited from Type
$_typeObjects