TYPO3
7.6
|
Public Member Functions | |
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) | |
convertFrom ($source, $targetType, array $convertedChildProperties=array(),\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface $configuration=null) | |
Protected Attributes | |
$sourceTypes = array() | |
$targetType = '' | |
$priority | |
$objectManager | |
Type converter which provides sensible default implementations for most methods. If you extend this class you only need to do the following:
Definition at line 33 of file AbstractTypeConverter.php.
canConvertFrom | ( | $source, | |
$targetType | |||
) |
This implementation always returns TRUE for this method.
mixed | $source | the source data |
string | $targetType | the type to convert to. |
Implements TypeConverterInterface.
Definition at line 129 of file AbstractTypeConverter.php.
getPriority | ( | ) |
Return the priority of this TypeConverter. TypeConverters with a high priority are chosen before low priority.
Implements TypeConverterInterface.
Definition at line 116 of file AbstractTypeConverter.php.
References AbstractTypeConverter\$priority.
getSourceChildPropertiesToBeConverted | ( | $source | ) |
Returns an empty list of sub property names
mixed | $source |
Implements TypeConverterInterface.
Definition at line 141 of file AbstractTypeConverter.php.
getSupportedSourceTypes | ( | ) |
Returns the list of source types the TypeConverter can handle. Must be PHP simple types, classes or object is not allowed.
Implements TypeConverterInterface.
Definition at line 79 of file AbstractTypeConverter.php.
References AbstractTypeConverter\$sourceTypes.
getSupportedTargetType | ( | ) |
Return the target type this TypeConverter converts to. Can be a simple type or a class name.
Implements TypeConverterInterface.
Definition at line 91 of file AbstractTypeConverter.php.
References AbstractTypeConverter\$targetType.
getTargetTypeForSource | ( | $source, | |
$originalTargetType, | |||
\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface | $configuration = null |
||
) |
Returns the $originalTargetType unchanged in this implementation.
mixed | $source | the source data |
string | $originalTargetType | the type we originally want to convert to |
\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface | $configuration |
Definition at line 105 of file AbstractTypeConverter.php.
getTypeOfChildProperty | ( | $targetType, | |
$propertyName, | |||
\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface | $configuration | ||
) |
This method is never called, as getSourceChildPropertiesToBeConverted() returns an empty array.
string | $targetType | |
string | $propertyName | |
\TYPO3\CMS\Extbase\Property\PropertyMappingConfigurationInterface | $configuration |
Implements TypeConverterInterface.
Definition at line 154 of file AbstractTypeConverter.php.
injectObjectManager | ( | \TYPO3\CMS\Extbase\Object\ObjectManagerInterface | $objectManager | ) |
\TYPO3\CMS\Extbase\Object\ObjectManagerInterface | $objectManager |
Definition at line 67 of file AbstractTypeConverter.php.
References AbstractTypeConverter\$objectManager.
|
protected |
Definition at line 62 of file AbstractTypeConverter.php.
Referenced by AbstractTypeConverter\injectObjectManager().
|
protected |
Definition at line 57 of file AbstractTypeConverter.php.
Referenced by AbstractTypeConverter\getPriority().
|
protected |
Definition at line 41 of file AbstractTypeConverter.php.
Referenced by AbstractTypeConverter\getSupportedSourceTypes().
|
protected |
Definition at line 49 of file AbstractTypeConverter.php.
Referenced by AbstractTypeConverter\getSupportedTargetType().