Свойство | Type | Description | |
---|---|---|---|
$priority | integer | ||
$sourceTypes | array |
||
$targetType | string |
Méthode | Description | |
---|---|---|
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 |
Méthode | Description | |
---|---|---|
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 | |
Résultat | DateTime | |
protected getDefaultDateFormat ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string | ||
$configuration | Neos\Flow\Property\PropertyMappingConfigurationInterface | |
Résultat | string |
protected isDatePartKeysProvided ( array $source ) : boolean | ||
$source | array | |
Résultat | boolean |
protected overrideTimeIfSpecified ( DateTime $date, array $source ) : void | ||
$date | DateTime | |
$source | array | |
Résultat | void |