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

Public Member Functions

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

Public Attributes

const CONFIGURATION_THOUSANDS_SEPARATOR = 'thousandsSeparator'
 
const CONFIGURATION_DECIMAL_POINT = 'decimalPoint'
 

Detailed Description

Converter which transforms a simple type to a float.

This is basically done by simply casting it.

Definition at line 28 of file FloatConverter.php.

Member Function Documentation

◆ convertFrom()

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

Actually convert from $source to $targetType, by doing a typecast.

Parameters
mixed$source
Returns
‪float|\TYPO3\CMS\Extbase\Error\Error|null

Implements TYPO3\CMS\Extbase\Property\TypeConverterInterface.

Definition at line 46 of file FloatConverter.php.

Member Data Documentation

◆ CONFIGURATION_DECIMAL_POINT

const TYPO3\CMS\Extbase\Property\TypeConverter\FloatConverter::CONFIGURATION_DECIMAL_POINT = 'decimalPoint'

◆ CONFIGURATION_THOUSANDS_SEPARATOR

const TYPO3\CMS\Extbase\Property\TypeConverter\FloatConverter::CONFIGURATION_THOUSANDS_SEPARATOR = 'thousandsSeparator'