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
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$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