PHP Class Neos\Flow\Property\TypeConverter\ArrayConverter
* If the source is an array, it is returned unchanged.
* If the source is a string, is is converted depending on CONFIGURATION_STRING_FORMAT,
which can be STRING_FORMAT_CSV or STRING_FORMAT_JSON. For CSV the delimiter can be
set via CONFIGURATION_STRING_DELIMITER.
* If the source is a PersistentResource object, it is converted to an array. The actual resource
content is either embedded as base64-encoded data or saved to a file, depending on
CONFIGURATION_RESOURCE_EXPORT_TYPE. For RESOURCE_EXPORT_TYPE_FILE the setting
CONFIGURATION_RESOURCE_SAVE_PATH must be set as well.
Mostrar archivo
Open project: neos/flow-development-collection
Class Usage Examples
Protected Properties
Public Methods
Method |
Description |
|
convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array |
Convert from $source to $targetType, a noop if the source is an array. |
|
Protected Methods
Method Details
convertFrom()
public method
If it is a string it will be converted according to the configured string format.
public convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array |
$source |
mixed |
|
$targetType |
string |
|
$convertedChildProperties |
array |
|
$configuration |
Neos\Flow\Property\PropertyMappingConfigurationInterface |
|
return |
array |
|
getResourceExportType()
protected method
protected getResourceExportType ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string |
$configuration |
Neos\Flow\Property\PropertyMappingConfigurationInterface |
|
return |
string |
|
getStringDelimiter()
protected method
protected getStringDelimiter ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string |
$configuration |
Neos\Flow\Property\PropertyMappingConfigurationInterface |
|
return |
string |
|
Property Details
$priority protected_oe property
protected int $priority |
return |
integer |
|
$sourceTypes protected_oe property
protected array $sourceTypes |
return |
array |
|
$targetType protected_oe property
protected string $targetType |
return |
string |
|