프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$priority | integer | ||
$sourceTypes | array |
||
$targetType | string |
메소드 | 설명 | |
---|---|---|
canConvertFrom ( string $source, string $targetType ) : boolean | If conversion is possible. | |
convertFrom ( string | integer | array $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : DateTime | |
Converts $source to a \DateTime using the configured dateFormat |
메소드 | 설명 | |
---|---|---|
getDefaultDateFormat ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string | Determines the default date format to use for the conversion. | |
isDatePartKeysProvided ( array $source ) : boolean | Returns whether date information (day, month, year) are present as keys in $source. | |
overrideTimeIfSpecified ( DateTime $date, array $source ) : void | Overrides hour, minute & second of the given date with the values in the $source array |
public convertFrom ( string | integer | array $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : DateTime | |
||
$source | string | integer | array | the string to be converted to a \DateTime object |
$targetType | string | must be "DateTime" |
$convertedChildProperties | array | not used currently |
$configuration | Neos\Flow\Property\PropertyMappingConfigurationInterface | |
리턴 | DateTime | |
protected getDefaultDateFormat ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string | ||
$configuration | Neos\Flow\Property\PropertyMappingConfigurationInterface | |
리턴 | string |
protected isDatePartKeysProvided ( array $source ) : boolean | ||
$source | array | |
리턴 | boolean |
protected overrideTimeIfSpecified ( DateTime $date, array $source ) : void | ||
$date | DateTime | |
$source | array | |
리턴 | void |