|
dolibarr 25.0.0-alpha
|
Leaf of the access rule tree: one whitelisted condition on the user. More...


Public Member Functions | |
| __construct (string $name) | |
| getName () | |
| toPhp () | |
| Render the predicate as a PHP boolean expression. | |
| toArray () | |
Public Attributes | |
| const | PREDICATES |
| PHP rendered for each predicate. | |
Leaf of the access rule tree: one whitelisted condition on the user.
Definition at line 29 of file PredicateRule.class.php.
| PredicateRule::__construct | ( | string | $name | ) |
| string | $name | Name of the predicate, one of the keys of PREDICATES |
InvalidArgumentException When the predicate is not whitelisted
Definition at line 58 of file PredicateRule.class.php.
References name.
| PredicateRule::getName | ( | ) |
Definition at line 69 of file PredicateRule.class.php.
| PredicateRule::toArray | ( | ) |
Implements AccessRuleExpression.
Definition at line 87 of file PredicateRule.class.php.
References name.
| PredicateRule::toPhp | ( | ) |
Render the predicate as a PHP boolean expression.
Implements AccessRuleExpression.
Definition at line 79 of file PredicateRule.class.php.
| const PredicateRule::PREDICATES |
PHP rendered for each predicate.
The mymodule and myobject tokens are replaced by the generator with the names of the generated module and object.
Definition at line 43 of file PredicateRule.class.php.