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.
Inheritance: extends AbstractTypeConverter
Afficher le fichier Open project: neos/flow-development-collection Class Usage Examples

Protected Properties

Свойство Type Description
$priority integer
$sourceTypes array
$targetType string

Méthodes publiques

Méthode 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.

Méthodes protégées

Méthode Description
getResourceExportType ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
getStringDelimiter ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
getStringFormat ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string

Method Details

convertFrom() public méthode

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
Résultat array

getResourceExportType() protected méthode

protected getResourceExportType ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Résultat string

getStringDelimiter() protected méthode

protected getStringDelimiter ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Résultat string

getStringFormat() protected méthode

protected getStringFormat ( Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Résultat string

Property Details

$priority protected_oe property

protected int $priority
Résultat integer

$sourceTypes protected_oe property

protected array $sourceTypes
Résultat array

$targetType protected_oe property

protected string $targetType
Résultat string