‪TYPO3CMS  ‪main
TYPO3\CMS\Extbase\Property\TypeConverter\ObjectStorageConverter Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Property\TypeConverter\ObjectStorageConverter:
TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter TYPO3\CMS\Extbase\Property\TypeConverterInterface TYPO3\CMS\Core\SingletonInterface

Public Member Functions

 convertFrom ($source, string $targetType, array $convertedChildProperties=[], PropertyMappingConfigurationInterface $configuration=null)
 
 getSourceChildPropertiesToBeConverted ($source)
 
 getTypeOfChildProperty ($targetType, string $propertyName, PropertyMappingConfigurationInterface $configuration)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter
 getTargetTypeForSource ($source, string $originalTargetType, PropertyMappingConfigurationInterface $configuration=null)
 
 getTypeOfChildProperty (string $targetType, string $propertyName, PropertyMappingConfigurationInterface $configuration)
 

Detailed Description

Converter which transforms simple types to an ObjectStorage.

Definition at line 27 of file ObjectStorageConverter.php.

Member Function Documentation

◆ convertFrom()

TYPO3\CMS\Extbase\Property\TypeConverter\ObjectStorageConverter::convertFrom (   $source,
string  $targetType,
array  $convertedChildProperties = [],
PropertyMappingConfigurationInterface  $configuration = null 
)

Actually convert from $source to $targetType, taking into account the fully built $convertedChildProperties and $configuration.

Parameters
mixed$source

Implements TYPO3\CMS\Extbase\Property\TypeConverterInterface.

Definition at line 35 of file ObjectStorageConverter.php.

◆ getSourceChildPropertiesToBeConverted()

TYPO3\CMS\Extbase\Property\TypeConverter\ObjectStorageConverter::getSourceChildPropertiesToBeConverted (   $source)

Returns the source, if it is an array, otherwise an empty array.

Parameters
mixed$source

Reimplemented from TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter.

Definition at line 49 of file ObjectStorageConverter.php.

◆ getTypeOfChildProperty()

TYPO3\CMS\Extbase\Property\TypeConverter\ObjectStorageConverter::getTypeOfChildProperty (   $targetType,
string  $propertyName,
PropertyMappingConfigurationInterface  $configuration 
)

Return the type of a given sub-property inside the $targetType

Parameters
string$targetType

Definition at line 62 of file ObjectStorageConverter.php.

References TYPO3\CMS\Extbase\Utility\TypeHandlingUtility\parseType().