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

The input will be transformed to the element type given with the $targetType (Type) using available type converters and the result will be used to populate a Doctrine ArrayCollection.
Наследование: extends AbstractTypeConverter
Показать файл Открыть проект Примеры использования класса

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

Свойство Тип Описание
$priority integer
$sourceTypes array
$targetType string

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

Метод Описание
convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : ArrayCollection Actually convert from $source to $targetType, taking into account the fully built $convertedChildProperties and $configuration.
getSourceChildPropertiesToBeConverted ( mixed $source ) : array Returns the source, if it is an array, otherwise an empty array.
getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string Return the type of a given sub-property inside the $targetType

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

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

Actually convert from $source to $targetType, taking into account the fully built $convertedChildProperties and $configuration.
public convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : ArrayCollection
$source mixed
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Результат Doctrine\Common\Collections\ArrayCollection

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

Returns the source, if it is an array, otherwise an empty array.
public getSourceChildPropertiesToBeConverted ( mixed $source ) : array
$source mixed
Результат array

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

Return the type of a given sub-property inside the $targetType
public getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string
$targetType string
$propertyName string
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
Результат string

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

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

protected int $priority
Результат integer

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

protected array $sourceTypes
Результат array

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

protected string $targetType
Результат string