PHP Class Common\Doctrine\Type\UTCDateTimeType

Inheritance: extends Doctrine\DBAL\Types\DateTimeType
Afficher le fichier Open project: forkcms/forkcms

Méthodes publiques

Méthode Description
convertToDatabaseValue ( DateTime $dateTime, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string | null
convertToPHPValue ( string $dateTimeString, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : DateTim\DateTime | null

Private Methods

Méthode Description
getUtc ( ) : DateTimeZone

Method Details

convertToDatabaseValue() public méthode

public convertToDatabaseValue ( DateTime $dateTime, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string | null
$dateTime DateTime
$platform Doctrine\DBAL\Platforms\AbstractPlatform
Résultat string | null

convertToPHPValue() public méthode

public convertToPHPValue ( string $dateTimeString, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : DateTim\DateTime | null
$dateTimeString string
$platform Doctrine\DBAL\Platforms\AbstractPlatform
Résultat DateTim\DateTime | null