PHP Класс Neos\Flow\Property\TypeConverter\AbstractTypeConverter

- set $sourceTypes - set $targetType - set $priority - implement convertFrom()
Наследование: implements Neos\Flow\Property\TypeConverterInterface
Показать файл Открыть проект

Защищенные свойства (Protected)

Свойство Тип Описание
$priority integer The priority for this converter.
$sourceTypes array The source types this converter can convert.
$targetType string The target type this converter can convert to.

Открытые методы

Метод Описание
canConvertFrom ( mixed $source, string $targetType ) : boolean This implementation always returns TRUE for this method.
getPriority ( ) : integer Return the priority of this TypeConverter. TypeConverters with a high priority are chosen before low priority.
getSourceChildPropertiesToBeConverted ( mixed $source ) : array Returns an empty list of sub property names
getSupportedSourceTypes ( ) : array Returns the list of source types the TypeConverter can handle.
getSupportedTargetType ( ) : string Return the target type this TypeConverter converts to.
getTargetTypeForSource ( mixed $source, string $originalTargetType, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string Returns the $originalTargetType unchanged in this implementation.
getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string This method is never called, as getSourceChildPropertiesToBeConverted() returns an empty array.

Описание методов

canConvertFrom() публичный Метод

This implementation always returns TRUE for this method.
public canConvertFrom ( mixed $source, string $targetType ) : boolean
$source mixed the source data
$targetType string the type to convert to.
Результат boolean TRUE if this TypeConverter can convert from $source to $targetType, FALSE otherwise.

getPriority() публичный Метод

Return the priority of this TypeConverter. TypeConverters with a high priority are chosen before low priority.
public getPriority ( ) : integer
Результат integer

getSourceChildPropertiesToBeConverted() публичный Метод

Returns an empty list of sub property names
public getSourceChildPropertiesToBeConverted ( mixed $source ) : array
$source mixed
Результат array

getSupportedSourceTypes() публичный Метод

Must be PHP simple types, classes or object is not allowed.
public getSupportedSourceTypes ( ) : array
Результат array

getSupportedTargetType() публичный Метод

Can be a simple type or a class name.
public getSupportedTargetType ( ) : string
Результат string

getTargetTypeForSource() публичный Метод

Returns the $originalTargetType unchanged in this implementation.
public getTargetTypeForSource ( mixed $source, string $originalTargetType, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string
$source mixed the source data
$originalTargetType string the type we originally want to convert to
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Результат string

getTypeOfChildProperty() публичный Метод

This method is never called, as getSourceChildPropertiesToBeConverted() returns an empty array.
public getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string
$targetType string
$propertyName string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Результат string

Описание свойств

$priority защищенное свойство

The priority for this converter.
protected int $priority
Результат integer

$sourceTypes защищенное свойство

The source types this converter can convert.
protected array $sourceTypes
Результат array

$targetType защищенное свойство

The target type this converter can convert to.
protected string $targetType
Результат string