\Mobi_Mtld_DA_Device_PostWalkRules

This class is used by the main API class and should not be used directly.

Summary

Methods
Properties
Constants
__construct()
propIsOutput()
getRequiredProperties()
No public properties found
No constants found
_initGetMatcherPropertyIds()
_initRuleSets()
$treeProvider
$branch
$propMatcherIdsInUse
$rulePropIdsInUse
N/A
_init()
_initGetRulePropertyIds()
No private properties found
N/A

Properties

$treeProvider

$treeProvider : 

Type

$branch

$branch : 

Type

$propMatcherIdsInUse

$propMatcherIdsInUse : 

Type

$rulePropIdsInUse

$rulePropIdsInUse : 

Type

Methods

__construct()

__construct(  $treeProvider,   $type) 

Parameters

$treeProvider
$type
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

propIsOutput()

propIsOutput(integer  $propertyId) : TRUE

Check if the property is used in the rules and so can be found from them.

This is used in Api.getProperty() to avoid calling the methods in the class if the property that is being looked for cannot be found here.

Parameters

integer $propertyId

The ID of the property that is sought

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

TRUE —

if the propertyId is used, FALSE otherwise

getRequiredProperties()

getRequiredProperties() : \The

Get a list of all the required properties that are needed for this class to properly run its rules.

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

\The —

list of required properties.

_initGetMatcherPropertyIds()

_initGetMatcherPropertyIds(array  $group) 

Find all the properties that are used for matching. This is needed in case the Api.getProperty() function is called as we need these properties for the rules to work correctly

Parameters

array $group

The rule group that can contain a property matcher

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

_initRuleSets()

_initRuleSets(array  $group) : \A

Prepare the rule set

Parameters

array $group

The current parent group.

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

\A —

list of all rule sets

_init()

_init() 

Initiliase some data structures to avoid doing it during requests

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

_initGetRulePropertyIds()

_initGetRulePropertyIds(array  $sets) 

Find all the properties that are used in the final rules. This is needed to optimise the Api.getProperty() function.

Parameters

array $sets

The rule set from the main rule group

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