프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$configuration | array | multi-dimensional array which stores type-converter specific configuration: 1. Dimension: Fully qualified class name of the type converter 2. Dimension: Configuration Key Value: Configuration Value | |
$mapUnknownProperties | boolean | If TRUE, unknown properties will be mapped. | |
$mapping | array | Keys which should be renamed | |
$propertiesNotToBeMapped | array | List of disallowed property names which will be ignored while property mapping | |
$propertiesToBeMapped | array | List of allowed property names to be converted | |
$propertiesToSkip | array | List of property names to be skipped during property mapping | |
$skipUnknownProperties | boolean | If TRUE, unknown properties will be skipped during property mapping | |
$subConfigurationForProperty | array |
Stores the configuration for specific child properties. | |
$typeConverter | Neos\Flow\Property\TypeConverterInterface |
메소드 | 설명 | |
---|---|---|
allowAllProperties ( ) : |
Allow all properties in property mapping, even unknown ones. | |
allowAllPropertiesExcept ( ) : |
Allow all properties during property mapping, but reject a few selected ones (blacklist). | |
allowProperties ( ) : |
Allow a list of specific properties. All arguments of allowProperties are used here (varargs). | |
forProperty ( string $propertyPath ) : |
Returns the configuration for the specific property path, ready to be modified. Should be used inside a fluent interface like: $configuration->forProperty('foo.bar')->setTypeConverterOption(. | |
getConfigurationFor ( string $propertyName ) : Neos\Flow\Property\PropertyMappingConfigurationInterface | Returns the sub-configuration for the passed $propertyName. Must ALWAYS return a valid configuration object! | |
getConfigurationValue ( string $typeConverterClassName, string $key ) : mixed | ||
getTargetPropertyName ( string $sourcePropertyName ) : string | Maps the given $sourcePropertyName to a target property name. | |
getTypeConverter ( ) : Neos\Flow\Property\TypeConverterInterface | Return the type converter set for this configuration. | |
setMapping ( string $sourcePropertyName, string $targetPropertyName ) : |
Define renaming from Source to Target property. | |
setTypeConverter ( Neos\Flow\Property\TypeConverterInterface $typeConverter ) : |
Set a type converter which should be used for this specific conversion. | |
setTypeConverterOption ( string $typeConverter, string $optionKey, mixed $optionValue ) : |
Set a single option (denoted by $optionKey) for the given $typeConverter. | |
setTypeConverterOptions ( string $typeConverter, array $options ) : |
Set all options for the given $typeConverter. | |
shouldMap ( string $propertyName ) : boolean | The behavior is as follows: | |
shouldSkip ( string $propertyName ) : boolean | Check if the given $propertyName should be skipped during mapping. | |
shouldSkipUnknownProperties ( ) : boolean | Whether unknown (unconfigured) properties should be skipped during mapping, instead if causing an error. | |
skipProperties ( ) : |
Skip a list of specific properties. All arguments of skipProperties are used here (varargs). | |
skipUnknownProperties ( ) : |
When this is enabled, properties that are disallowed will be skipped instead of triggering an error during mapping. | |
traverseProperties ( array $splittedPropertyPath ) : |
Traverse the property configuration. Only used by forProperty(). |
메소드 | 설명 | |
---|---|---|
getTypeConvertersWithParentClasses ( string $typeConverter ) : array | Get type converter classes including parents for the given type converter |
public allowAllProperties ( ) : |
||
리턴 | this |
public allowAllPropertiesExcept ( ) : |
||
리턴 | this |
public allowProperties ( ) : |
||
리턴 | this |
public forProperty ( string $propertyPath ) : |
||
$propertyPath | string | |
리턴 | (or a subclass thereof) |
public getConfigurationFor ( string $propertyName ) : Neos\Flow\Property\PropertyMappingConfigurationInterface | ||
$propertyName | string | |
리턴 | Neos\Flow\Property\PropertyMappingConfigurationInterface | the property mapping configuration for the given $propertyName. |
public getTargetPropertyName ( string $sourcePropertyName ) : string | ||
$sourcePropertyName | string | |
리턴 | string | property name of target |
public getTypeConverter ( ) : Neos\Flow\Property\TypeConverterInterface | ||
리턴 | Neos\Flow\Property\TypeConverterInterface |
protected getTypeConvertersWithParentClasses ( string $typeConverter ) : array | ||
$typeConverter | string | The type converter class |
리턴 | array | Class names of type converters |
public setMapping ( string $sourcePropertyName, string $targetPropertyName ) : |
||
$sourcePropertyName | string | |
$targetPropertyName | string | |
리턴 | this |
public setTypeConverter ( Neos\Flow\Property\TypeConverterInterface $typeConverter ) : |
||
$typeConverter | Neos\Flow\Property\TypeConverterInterface | |
리턴 | this |
public setTypeConverterOptions ( string $typeConverter, array $options ) : |
||
$typeConverter | string | class name of type converter |
$options | array | |
리턴 | this |
public shouldSkip ( string $propertyName ) : boolean | ||
$propertyName | string | |
리턴 | boolean |
public shouldSkipUnknownProperties ( ) : boolean | ||
리턴 | boolean |
public skipProperties ( ) : |
||
리턴 | this |
public skipUnknownProperties ( ) : |
||
리턴 | this |
public traverseProperties ( array $splittedPropertyPath ) : |
||
$splittedPropertyPath | array | |
리턴 | (or a subclass thereof) |
protected array $configuration | ||
리턴 | array |
protected bool $mapUnknownProperties | ||
리턴 | boolean |
protected array $propertiesNotToBeMapped | ||
리턴 | array |
protected array $propertiesToBeMapped | ||
리턴 | array |
protected array $propertiesToSkip | ||
리턴 | array |
protected bool $skipUnknownProperties | ||
리턴 | boolean |
protected array |
||
리턴 | array |