Свойство | Type | Description | |
---|---|---|---|
$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 |
Méthode | Description | |
---|---|---|
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(). |
Méthode | Description | |
---|---|---|
getTypeConvertersWithParentClasses ( string $typeConverter ) : array | Get type converter classes including parents for the given type converter |
public allowAllProperties ( ) : |
||
Résultat | this |
public allowAllPropertiesExcept ( ) : |
||
Résultat | this |
public allowProperties ( ) : |
||
Résultat | this |
public forProperty ( string $propertyPath ) : |
||
$propertyPath | string | |
Résultat | (or a subclass thereof) |
public getConfigurationFor ( string $propertyName ) : Neos\Flow\Property\PropertyMappingConfigurationInterface | ||
$propertyName | string | |
Résultat | Neos\Flow\Property\PropertyMappingConfigurationInterface | the property mapping configuration for the given $propertyName. |
public getTargetPropertyName ( string $sourcePropertyName ) : string | ||
$sourcePropertyName | string | |
Résultat | string | property name of target |
public getTypeConverter ( ) : Neos\Flow\Property\TypeConverterInterface | ||
Résultat | Neos\Flow\Property\TypeConverterInterface |
protected getTypeConvertersWithParentClasses ( string $typeConverter ) : array | ||
$typeConverter | string | The type converter class |
Résultat | array | Class names of type converters |
public setMapping ( string $sourcePropertyName, string $targetPropertyName ) : |
||
$sourcePropertyName | string | |
$targetPropertyName | string | |
Résultat | this |
public setTypeConverter ( Neos\Flow\Property\TypeConverterInterface $typeConverter ) : |
||
$typeConverter | Neos\Flow\Property\TypeConverterInterface | |
Résultat | this |
public setTypeConverterOptions ( string $typeConverter, array $options ) : |
||
$typeConverter | string | class name of type converter |
$options | array | |
Résultat | this |
public shouldSkip ( string $propertyName ) : boolean | ||
$propertyName | string | |
Résultat | boolean |
public shouldSkipUnknownProperties ( ) : boolean | ||
Résultat | boolean |
public skipProperties ( ) : |
||
Résultat | this |
public skipUnknownProperties ( ) : |
||
Résultat | this |
public traverseProperties ( array $splittedPropertyPath ) : |
||
$splittedPropertyPath | array | |
Résultat | (or a subclass thereof) |
protected array $configuration | ||
Résultat | array |
protected bool $mapUnknownProperties | ||
Résultat | boolean |
protected array $propertiesNotToBeMapped | ||
Résultat | array |
protected array $propertiesToBeMapped | ||
Résultat | array |
protected array $propertiesToSkip | ||
Résultat | array |
protected bool $skipUnknownProperties | ||
Résultat | boolean |
protected array |
||
Résultat | array |