PHP 클래스 eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTimeConverter

상속: implements eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter
파일 보기 프로젝트 열기: ezsystems/ezpublish-kernel 1 사용 예제들

공개 메소드들

메소드 설명
create ( ) : eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTime Factory for current class.
getIndexColumn ( ) : string Returns the name of the index column in the attribute table.
toFieldDefinition ( StorageFieldDefinition $storageDef, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef ) Converts field definition data in $storageDef into $fieldDef.
toFieldValue ( StorageFieldValue $value, eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue ) Converts data from $value to $fieldValue.
toStorageFieldDefinition ( eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef, StorageFieldDefinition $storageDef ) Converts field definition data in $fieldDef into $storageFieldDef.
toStorageValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $value, StorageFieldValue $storageFieldValue ) Converts data from $value to $storageFieldValue.

보호된 메소드들

메소드 설명
generateDateIntervalXML ( DateInterval $dateInterval ) : string Generates the internal XML structure for $dateInterval, used for date adjustment.
getDateIntervalFromXML ( string $xmlText ) : DateInterval Generates a DateInterval object from $xmlText.

메소드 상세

create() 공개 정적인 메소드

Note: Class should instead be configured as service if it gains dependencies.
public static create ( ) : eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTime
리턴 eZ\Publish\Core\Persistence\Legacy\Content\FieldValue\Converter\DateAndTime

generateDateIntervalXML() 보호된 메소드

Generates the internal XML structure for $dateInterval, used for date adjustment.
protected generateDateIntervalXML ( DateInterval $dateInterval ) : string
$dateInterval DateInterval
리턴 string The generated XML string

getDateIntervalFromXML() 보호된 메소드

Generates a DateInterval object from $xmlText.
protected getDateIntervalFromXML ( string $xmlText ) : DateInterval
$xmlText string
리턴 DateInterval

getIndexColumn() 공개 메소드

Returns the name of the index column the datatype uses, which is either "sort_key_int" or "sort_key_string". This column is then used for filtering and sorting for this type.
public getIndexColumn ( ) : string
리턴 string

toFieldDefinition() 공개 메소드

Converts field definition data in $storageDef into $fieldDef.
public toFieldDefinition ( StorageFieldDefinition $storageDef, eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef )
$storageDef eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition
$fieldDef eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition

toFieldValue() 공개 메소드

Converts data from $value to $fieldValue.
public toFieldValue ( StorageFieldValue $value, eZ\Publish\SPI\Persistence\Content\FieldValue $fieldValue )
$value eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue
$fieldValue eZ\Publish\SPI\Persistence\Content\FieldValue

toStorageFieldDefinition() 공개 메소드

Converts field definition data in $fieldDef into $storageFieldDef.
public toStorageFieldDefinition ( eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition $fieldDef, StorageFieldDefinition $storageDef )
$fieldDef eZ\Publish\SPI\Persistence\Content\Type\FieldDefinition
$storageDef eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldDefinition

toStorageValue() 공개 메소드

Converts data from $value to $storageFieldValue.
public toStorageValue ( eZ\Publish\SPI\Persistence\Content\FieldValue $value, StorageFieldValue $storageFieldValue )
$value eZ\Publish\SPI\Persistence\Content\FieldValue
$storageFieldValue eZ\Publish\Core\Persistence\Legacy\Content\StorageFieldValue