TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
StringConverter Class Reference
Inheritance diagram for StringConverter:
AbstractTypeConverter SingletonInterface TypeConverterInterface SingletonInterface

Public Member Functions

 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('string', 'integer')
 
 $targetType = 'string'
 
 $priority = 1
 
- Protected Attributes inherited from AbstractTypeConverter
 $sourceTypes = array()
 
 $targetType = ''
 
 $priority
 
 $objectManager
 

Detailed Description

Converter which transforms simple types to a string.

Definition at line 28 of file StringConverter.php.

Member Function Documentation

convertFrom (   $source,
  $targetType,
array  $convertedChildProperties = array(),
\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface  $configuration = null 
)

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

Parameters
string$source
string$targetType
array$convertedChildProperties
\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface$configuration
Returns
string

Implements TypeConverterInterface.

Definition at line 56 of file StringConverter.php.

Member Data Documentation

$priority = 1
protected

Definition at line 43 of file StringConverter.php.

$sourceTypes = array('string', 'integer')
protected

Definition at line 33 of file StringConverter.php.

$targetType = 'string'
protected

Definition at line 38 of file StringConverter.php.