Documentation

PropertyMappingsRunner
in package

Runs the property mappings transformations and adds the found properties to the result set.

Table of Contents

Properties

$propertyMappings  : mixed

Methods

__construct()  : mixed
run()  : mixed
associatedIdentiferExists()  : mixed
Check if the headers contain any of the associated identifier names.
createProperty()  : mixed
getProperty()  : mixed
The property is obtained by transforming the source value.
runMapping()  : mixed
Tries to find a property value from the mappings sources.

Properties

Methods

__construct()

public __construct(mixed $propertyMappings) : mixed
Parameters
$propertyMappings : mixed

run()

public run(mixed &$dynamicProperties, mixed $headers) : mixed
Parameters
$dynamicProperties : mixed
$headers : mixed

associatedIdentiferExists()

Check if the headers contain any of the associated identifier names.

private associatedIdentiferExists( $assocIdentifierNames,  $headers) : mixed
Parameters
$assocIdentifierNames :
$headers :

createProperty()

private createProperty(mixed $sourceValue, mixed $dataTypeId) : mixed
Parameters
$sourceValue : mixed
$dataTypeId : mixed

getProperty()

The property is obtained by transforming the source value.

private getProperty(mixed $source, mixed $propertyDataTypeId, mixed $dynamicProperties, mixed $headers) : mixed

The source value is either trimmed and returned or used in a comparison operation(s) to return a defined value. If neither a trim transformation nor a comparison transformation is defined then the source value is passed through unchanged.

Parameters
$source : mixed
$propertyDataTypeId : mixed
$dynamicProperties : mixed
$headers : mixed

runMapping()

Tries to find a property value from the mappings sources.

private runMapping(mixed $mapping, mixed &$dynamicProperties, mixed $headers) : mixed

If a value is found the property is added to the result set and the rest of the sources are ignored.

Parameters
$mapping : mixed
$dynamicProperties : mixed
$headers : mixed

        
On this page

Search results