TYPO3 CMS  TYPO3_6-2
TYPO3\CMS\Extbase\Property\TypeConverter\StringConverter Class Reference
Inheritance diagram for TYPO3\CMS\Extbase\Property\TypeConverter\StringConverter:
TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter TYPO3\CMS\Core\SingletonInterface TYPO3\CMS\Extbase\Property\TypeConverterInterface TYPO3\CMS\Core\SingletonInterface Tx_Extbase_Property_TypeConverter_StringConverter

Public Member Functions

 convertFrom ($source, $targetType, array $convertedChildProperties=array(), \TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface $configuration=NULL)
 
- Public Member Functions inherited from TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter
 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 TYPO3\CMS\Extbase\Property\TypeConverterInterface
 getTargetTypeForSource ($source, $originalTargetType, PropertyMappingConfigurationInterface $configuration=NULL)
 

Protected Attributes

 $sourceTypes = array('string', 'integer')
 
 $targetType = 'string'
 
 $priority = 1
 
- Protected Attributes inherited from TYPO3\CMS\Extbase\Property\TypeConverter\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()

TYPO3\CMS\Extbase\Property\TypeConverter\StringConverter::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 TYPO3\CMS\Extbase\Property\TypeConverterInterface.

Definition at line 56 of file StringConverter.php.

Member Data Documentation

◆ $priority

TYPO3\CMS\Extbase\Property\TypeConverter\StringConverter::$priority = 1
protected

Definition at line 43 of file StringConverter.php.

◆ $sourceTypes

TYPO3\CMS\Extbase\Property\TypeConverter\StringConverter::$sourceTypes = array('string', 'integer')
protected

Definition at line 33 of file StringConverter.php.

◆ $targetType

TYPO3\CMS\Extbase\Property\TypeConverter\StringConverter::$targetType = 'string'
protected

Definition at line 38 of file StringConverter.php.