|
dolibarr 25.0.0-alpha
|
Evaluates the rule tree of an access policy. More...


Public Member Functions | |
| __construct (AccessPolicyConfig $policy) | |
| evaluate (User $user, CommonObject $obj) | |
Private Member Functions | |
| evaluateNode (AccessRuleExpression $node, User $user, CommonObject $obj) | |
| evaluatePredicate (string $name, User $user, CommonObject $obj) | |
Evaluates the rule tree of an access policy.
This is the reference semantics of the PHP block rendered into the generated pages: both must grant the same access to the same user.
Definition at line 32 of file AccessPolicyEvaluator.class.php.
| AccessPolicyEvaluator::__construct | ( | AccessPolicyConfig | $policy | ) |
| AccessPolicyConfig | $policy | Policy to evaluate |
Definition at line 40 of file AccessPolicyEvaluator.class.php.
| AccessPolicyEvaluator::evaluate | ( | User | $user, |
| CommonObject | $obj ) |
| User | $user | User asking for the access |
| CommonObject | $obj | Object to access, it provides the module and element of the permissions |
Implements AccessRuleEvaluator.
Definition at line 50 of file AccessPolicyEvaluator.class.php.
References dol_syslog(), and evaluateNode().
|
private |
| AccessRuleExpression | $node | Node to evaluate |
| User | $user | User asking for the access |
| CommonObject | $obj | Object to access |
LogicException When the node or the predicate is unknown
Definition at line 67 of file AccessPolicyEvaluator.class.php.
References evaluateNode(), and evaluatePredicate().
Referenced by evaluate(), and evaluateNode().
|
private |
| string | $name | Name of the predicate |
| User | $user | User asking for the access |
| CommonObject | $obj | Object to access |
LogicException When the predicate is unknown
Definition at line 98 of file AccessPolicyEvaluator.class.php.
Referenced by evaluateNode().