‪TYPO3CMS  10.4
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\Extbase\Property\TypeConverterInterface TYPO3\CMS\Core\SingletonInterface

Public Member Functions

string convertFrom ($source, string $targetType, array $convertedChildProperties=[], PropertyMappingConfigurationInterface $configuration=null)
 
- ‪Public Member Functions inherited from ‪TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter
 injectObjectManager (ObjectManagerInterface $objectManager)
 
string[] getSupportedSourceTypes ()
 
string getSupportedTargetType ()
 
string getTargetTypeForSource ($source, string $originalTargetType, PropertyMappingConfigurationInterface $configuration=null)
 
int getPriority ()
 
bool canConvertFrom ($source, string $targetType)
 
array getSourceChildPropertiesToBeConverted ($source)
 
string getTypeOfChildProperty (string $targetType, string $propertyName, PropertyMappingConfigurationInterface $configuration)
 

Protected Attributes

string[] $sourceTypes = array( 'string', 'integer' )
 
string $targetType = 'string'
 
int $priority = 10
 
- ‪Protected Attributes inherited from ‪TYPO3\CMS\Extbase\Property\TypeConverter\AbstractTypeConverter
string[] $sourceTypes = array( )
 
string $targetType = ''
 
int $priority
 
TYPO3 CMS Extbase Object ObjectManagerInterface $objectManager
 

Detailed Description

Converter which transforms simple types to a string.

Definition at line 25 of file StringConverter.php.

Member Function Documentation

◆ convertFrom()

string TYPO3\CMS\Extbase\Property\TypeConverter\StringConverter::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
string$source
string$targetType
array$convertedChildProperties
\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface$configuration
Returns
‪string

Implements TYPO3\CMS\Extbase\Property\TypeConverterInterface.

Definition at line 49 of file StringConverter.php.

Member Data Documentation

◆ $priority

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

Definition at line 37 of file StringConverter.php.

◆ $sourceTypes

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

Definition at line 29 of file StringConverter.php.

◆ $targetType

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

Definition at line 33 of file StringConverter.php.