\DeviceAtlas\DevicePropertyMappingsRunner

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

Summary

Methods
Properties
Constants
__construct()
run()
No public properties found
No constants found
No protected methods found
No protected properties found
N/A
runMapping()
getProperty()
createProperty()
associatedIdentiferExists()
$propertyMappings
N/A

Properties

$propertyMappings

$propertyMappings : 

Type

Methods

__construct()

__construct(  $propertyMappings) 

Parameters

$propertyMappings
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

run()

run(  $dynamicProperties,   $headers) 

Parameters

$dynamicProperties
$headers
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

runMapping()

runMapping(  $mapping,   $dynamicProperties,   $headers) 

Tries to find a property value from the mappings sources.

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

Parameters

$mapping
$dynamicProperties
$headers
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

getProperty()

getProperty(  $source,   $propertyDataTypeId,   $dynamicProperties,   $headers) 

The property is obtained by transforming the source value.

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
$propertyDataTypeId
$dynamicProperties
$headers
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

createProperty()

createProperty(  $sourceValue,   $dataTypeId) 

Parameters

$sourceValue
$dataTypeId
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

associatedIdentiferExists()

associatedIdentiferExists(  $assocIdentifierNames,   $headers) : 

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

Parameters

$assocIdentifierNames
$headers
Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275 Warning: count(): Parameter must be an array or an object that implements Countable in /opt/phpdoc/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1275

Returns