Documentation

PropertyMappingsRunner
in package

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

Table of Contents

$propertyMappings  : mixed
__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
Return values
mixed

run()

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

associatedIdentiferExists()

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

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

createProperty()

private createProperty(mixed $sourceValue, mixed $dataTypeId) : mixed
Parameters
$sourceValue : mixed
$dataTypeId : mixed
Return values
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.

Note: the trim transformations occur in the InputSanitiser along with the property mappings validation.

Parameters
$source : mixed
$propertyDataTypeId : mixed
$dynamicProperties : mixed
$headers : mixed
Return values
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
Return values
mixed

Search results