PHP 클래스 Neos\Flow\Property\TypeConverter\TypedArrayConverter

This is a meta converter that will take an array and try to transform all elements in that array to the element type of the target array using an available type converter.
상속: extends AbstractTypeConverter
파일 보기 프로젝트 열기: neos/flow-development-collection 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$priority integer
$sourceTypes array
$targetType string

공개 메소드들

메소드 설명
canConvertFrom ( mixed $source, string $targetType ) : boolean
convertFrom ( array $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array
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

메소드 상세

canConvertFrom() 공개 메소드

public canConvertFrom ( mixed $source, string $targetType ) : boolean
$source mixed
$targetType string
리턴 boolean

convertFrom() 공개 메소드

public convertFrom ( array $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : array
$source array An array of objects/simple types
$targetType string
$convertedChildProperties array
$configuration Neos\Flow\Property\PropertyMappingConfigurationInterface
리턴 array

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