TYPO3  7.6
Public Member Functions | List of all members
PropertyMappingConfigurationInterface Interface Reference
Inheritance diagram for PropertyMappingConfigurationInterface:
PropertyMappingConfiguration MvcPropertyMappingConfiguration

Public Member Functions

 shouldSkip ($propertyName)
 
 shouldSkipUnknownProperties ()
 
 getConfigurationFor ($propertyName)
 
 getTargetPropertyName ($sourcePropertyName)
 
 getConfigurationValue ($typeConverterClassName, $key)
 
 getTypeConverter ()
 

Detailed Description

Configuration object for the property mapper.

http://www.gnu.org/licenses/lgpl.html GNU Lesser General Public License, version 3 or later

Definition at line 29 of file PropertyMappingConfigurationInterface.php.

Member Function Documentation

getConfigurationFor (   $propertyName)

Returns the sub-configuration for the passed $propertyName. Must ALWAYS return a valid configuration object!

Parameters
string$propertyName
Returns
the property mapping configuration for the given $propertyName.

Implemented in PropertyMappingConfiguration.

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

Implemented in PropertyMappingConfiguration.

getTargetPropertyName (   $sourcePropertyName)

Maps the given $sourcePropertyName to a target property name. Can be used to rename properties from source to target.

Parameters
string$sourcePropertyName
Returns
string property name of target

Implemented in PropertyMappingConfiguration.

Referenced by PropertyMapper\doMapping().

getTypeConverter ( )

This method can be used to explicitly force a TypeConverter to be used for this Configuration.

Returns
The type converter to be used for this particular PropertyMappingConfiguration, or NULL if the system-wide configured type converter should be used.

Implemented in PropertyMappingConfiguration.

shouldSkip (   $propertyName)

returns TRUE if the given propertyName should be mapped, FALSE otherwise.

Parameters
string$propertyName
Returns
bool

Implemented in PropertyMappingConfiguration.

Referenced by PropertyMapper\doMapping().

shouldSkipUnknownProperties ( )

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

Returns
bool

Implemented in PropertyMappingConfiguration.

Referenced by PropertyMapper\doMapping().