PHP 인터페이스 Neos\Flow\Property\PropertyMappingConfigurationInterface

As developer, you should probably subclass the PropertyMappingConfiguration class if adjustments are needed there.
파일 보기 프로젝트 열기: neos/flow-development-collection 0 사용 예제들

공개 메소드들

메소드 설명
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 This method can be used to explicitely force a TypeConverter to be used for this Configuration.
shouldMap ( string $propertyName ) : boolean
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.

메소드 상세

getConfigurationFor() 공개 메소드

Returns the sub-configuration for the passed $propertyName. Must ALWAYS return a valid configuration object!
public getConfigurationFor ( string $propertyName ) : Neos\Flow\Property\PropertyMappingConfigurationInterface
$propertyName string
리턴 Neos\Flow\Property\PropertyMappingConfigurationInterface the property mapping configuration for the given $propertyName.

getConfigurationValue() 공개 메소드

public getConfigurationValue ( string $typeConverterClassName, string $key ) : mixed
$typeConverterClassName string
$key string
리턴 mixed configuration value for the specific $typeConverterClassName. Can be used by Type Converters to fetch converter-specific configuration

getTargetPropertyName() 공개 메소드

Can be used to rename properties from source to target.
public getTargetPropertyName ( string $sourcePropertyName ) : string
$sourcePropertyName string
리턴 string property name of target

getTypeConverter() 공개 메소드

This method can be used to explicitely force a TypeConverter to be used for this Configuration.
public getTypeConverter ( ) : Neos\Flow\Property\TypeConverterInterface
리턴 Neos\Flow\Property\TypeConverterInterface The type converter to be used for this particular PropertyMappingConfiguration, or NULL if the system-wide configured type converter should be used.

shouldMap() 공개 메소드

public shouldMap ( string $propertyName ) : boolean
$propertyName string
리턴 boolean TRUE if the given propertyName should be mapped, FALSE otherwise.

shouldSkip() 공개 메소드

Check if the given $propertyName should be skipped during mapping.
public shouldSkip ( string $propertyName ) : boolean
$propertyName string
리턴 boolean

shouldSkipUnknownProperties() 공개 메소드

Whether unknown (unconfigured) properties should be skipped during mapping, instead if causing an error.