$treeProvider
$treeProvider :
This class is used by the main API class and should not be used directly.
__construct( $treeProvider, $type)
$treeProvider | ||
$type |
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.
integer | $propertyId | The ID of the property that is sought |
if the propertyId is used, FALSE otherwise
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 1275list of required properties.
_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
array | $group | The rule group that can contain a property matcher |
_initRuleSets(array $group) : \A
Prepare the rule set
array | $group | The current parent group. |
list of all rule sets
_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(array $sets)
Find all the properties that are used in the final rules. This is needed to optimise the Api.getProperty() function.
array | $sets | The rule set from the main rule group |