PHP Class Backend\Modules\ContentBlocks\DBALType\ContentBlockStatusDBALType

Inheritance: extends Doctrine\DBAL\Types\Type
显示文件 Open project: forkcms/forkcms

Public Methods

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

Method Details

convertToDatabaseValue() public method

public convertToDatabaseValue ( ContentBlockStatus $status, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : string
$status Backend\Modules\ContentBlocks\ValueObject\ContentBlockStatus
$platform Doctrine\DBAL\Platforms\AbstractPlatform
return string

convertToPHPValue() public method

public convertToPHPValue ( string $status, Doctrine\DBAL\Platforms\AbstractPlatform $platform ) : ContentBlockStatus
$status string
$platform Doctrine\DBAL\Platforms\AbstractPlatform
return Backend\Modules\ContentBlocks\ValueObject\ContentBlockStatus

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