|
dolibarr 25.0.0-alpha
|
Node of the access rule tree of the pages generated by ModuleBuilder. More...

Public Member Functions | |
| toPhp () | |
| Render the node as a PHP boolean expression, composite nodes being wrapped in parentheses. | |
| toArray () | |
| Return the node as an array, ready to be JSON encoded. | |
Node of the access rule tree of the pages generated by ModuleBuilder.
A tree is made of AndRule and OrRule nodes whose leaves are whitelisted PredicateRule: there is no way to inject a free PHP expression in the generated pages.
Definition at line 30 of file AccessRuleExpression.class.php.
| AccessRuleExpression::toArray | ( | ) |
Return the node as an array, ready to be JSON encoded.
Implemented in AndRule, OrRule, and PredicateRule.
| AccessRuleExpression::toPhp | ( | ) |
Render the node as a PHP boolean expression, composite nodes being wrapped in parentheses.
Implemented in AndRule, OrRule, and PredicateRule.