TYPO3
7.6
|
Public Member Functions | |
canConvertFrom ($source, $targetType) | |
convertFrom ($source, $targetType, array $convertedChildProperties=array(),\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface $configuration=null) | |
Public Member Functions inherited from AbstractTypeConverter | |
injectObjectManager (\TYPO3\CMS\Extbase\Object\ObjectManagerInterface $objectManager) | |
getSupportedSourceTypes () | |
getSupportedTargetType () | |
getTargetTypeForSource ($source, $originalTargetType,\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface $configuration=null) | |
getPriority () | |
canConvertFrom ($source, $targetType) | |
getSourceChildPropertiesToBeConverted ($source) | |
getTypeOfChildProperty ($targetType, $propertyName,\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface $configuration) | |
Public Member Functions inherited from TypeConverterInterface | |
getTargetTypeForSource ($source, $originalTargetType, PropertyMappingConfigurationInterface $configuration=null) | |
Protected Attributes | |
$sourceTypes = array('array', 'string') | |
$targetType = 'array' | |
$priority = 1 | |
Protected Attributes inherited from AbstractTypeConverter | |
$sourceTypes = array() | |
$targetType = '' | |
$priority | |
$objectManager | |
Converter which transforms arrays to arrays.
Definition at line 28 of file ArrayConverter.php.
canConvertFrom | ( | $source, | |
$targetType | |||
) |
We can only convert empty strings to array or array to array.
mixed | $source | |
string | $targetType |
Implements TypeConverterInterface.
Definition at line 52 of file ArrayConverter.php.
convertFrom | ( | $source, | |
$targetType, | |||
array | $convertedChildProperties = array() , |
||
\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface | $configuration = null |
||
) |
Convert from $source to $targetType, a noop if the source is an array. If it is an empty string it will be converted to an empty array.
string | array | $source | |
string | $targetType | |
array | $convertedChildProperties | |
\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface | $configuration |
Implements TypeConverterInterface.
Definition at line 68 of file ArrayConverter.php.
|
protected |
Definition at line 43 of file ArrayConverter.php.
|
protected |
Definition at line 33 of file ArrayConverter.php.
|
protected |
Definition at line 38 of file ArrayConverter.php.