프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$constructorReflectionFirstLevelCache | array | As it is very likely that the constructor arguments are needed twice we should cache them for the request. | |
$objectManager | Neos\Flow\ObjectManagement\ObjectManagerInterface | ||
$priority | integer | ||
$reflectionService | |||
$sourceTypes | array | ||
$targetType | string |
메소드 | 설명 | |
---|---|---|
canConvertFrom ( mixed $source, string $targetType ) : boolean | Only convert non-persistent types | |
convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : object | Convert an object from $source to an object. | |
getSourceChildPropertiesToBeConverted ( mixed $source ) : array | Convert all properties in the source array | |
getTargetTypeForSource ( mixed $source, string $originalTargetType, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : string | Determines the target type based on the source's (optional) __type key. | |
getTypeOfChildProperty ( string $targetType, string $propertyName, Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration ) : string | The type of a property is determined by the reflection service. |
메소드 | 설명 | |
---|---|---|
buildObject ( array &$possibleConstructorArgumentValues, string $objectType ) : object | Builds a new instance of $objectType with the given $possibleConstructorArgumentValues. | |
getConstructorArgumentsForClass ( string $className ) : array |
Get the constructor argument reflection for the given object type. |
public convertFrom ( mixed $source, string $targetType, array $convertedChildProperties = [], Neos\Flow\Property\PropertyMappingConfigurationInterface $configuration = null ) : object | ||
$source | mixed | |
$targetType | string | |
$convertedChildProperties | array | |
$configuration | Neos\Flow\Property\PropertyMappingConfigurationInterface | |
리턴 | object | the target type |
protected getConstructorArgumentsForClass ( string $className ) : array |
||
$className | string | |
리턴 | array |
public getSourceChildPropertiesToBeConverted ( mixed $source ) : array | ||
$source | mixed | |
리턴 | array |
protected array $constructorReflectionFirstLevelCache | ||
리턴 | array |
protected ObjectManagerInterface,Neos\Flow\ObjectManagement $objectManager | ||
리턴 | Neos\Flow\ObjectManagement\ObjectManagerInterface |
protected ReflectionService,Neos\Flow\Reflection $reflectionService | ||
리턴 |