TYPO3  7.6
Public Member Functions | Protected Attributes | List of all members
FloatConverter Class Reference
Inheritance diagram for FloatConverter:
AbstractTypeConverter 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('float', 'integer', 'string')
 
 $targetType = 'float'
 
 $priority = 1
 
- Protected Attributes inherited from AbstractTypeConverter
 $sourceTypes = array()
 
 $targetType = ''
 
 $priority
 
 $objectManager
 

Detailed Description

Converter which transforms a simple type to a float.

This is basically done by simply casting it.

Definition at line 30 of file FloatConverter.php.

Member Function Documentation

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

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

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

Implements TypeConverterInterface.

Definition at line 57 of file FloatConverter.php.

Member Data Documentation

$priority = 1
protected

Definition at line 45 of file FloatConverter.php.

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

Definition at line 35 of file FloatConverter.php.

$targetType = 'float'
protected

Definition at line 40 of file FloatConverter.php.