PHP Class Common\Doctrine\Type\LocaleType

Inheritance: extends Doctrine\DBAL\Types\TextType
Mostra file Open project: forkcms/forkcms

Public Methods

Method Description
convertToDatabaseValue ( Locale $locale, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string
convertToPHPValue ( string $locale, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : Locale
getName ( ) : string
getSQLDeclaration ( array $fieldDeclaration, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string

Method Details

convertToDatabaseValue() public method

public convertToDatabaseValue ( Locale $locale, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string
$locale common\Locale
$platform Doctrine\DBAL\Platforms\AbstractPlatform
return string

convertToPHPValue() public method

public convertToPHPValue ( string $locale, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : Locale
$locale string
$platform Doctrine\DBAL\Platforms\AbstractPlatform
return common\Locale

getName() public method

public getName ( ) : string
return string

getSQLDeclaration() public method

public getSQLDeclaration ( array $fieldDeclaration, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string
$fieldDeclaration array
$platform Doctrine\DBAL\Platforms\AbstractPlatform
return string