dolibarr 25.0.0-alpha
AccessRuleExpression Interface Reference

Node of the access rule tree of the pages generated by ModuleBuilder. More...

Inheritance diagram for AccessRuleExpression:

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.
 

Detailed Description

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.

Member Function Documentation

◆ toArray()

AccessRuleExpression::toArray ( )

Return the node as an array, ready to be JSON encoded.

Returns
array<string,mixed>

Implemented in AndRule, OrRule, and PredicateRule.

◆ toPhp()

AccessRuleExpression::toPhp ( )

Render the node as a PHP boolean expression, composite nodes being wrapped in parentheses.

Returns
string PHP boolean expression

Implemented in AndRule, OrRule, and PredicateRule.


The documentation for this interface was generated from the following file: