abstract class AbstractPolicy
Constants
| GLOBAL |
|
| ALLOW |
|
| DENY |
|
| FORCE_ALLOW |
|
| FORCE_DENY |
|
Methods
string|void
sanitizeResult(mixed $result)
Allows `true` to be used in place of `->allow()`, and `false` instead of `->deny()` This allows more concise and intuitive code, by returning boolean statements:.
Details
at
line 22
protected
allow()
at
line 27
protected
deny()
at
line 32
protected
forceAllow()
at
line 37
protected
forceDeny()
at
line 78
string|void
sanitizeResult(mixed $result)
Allows `true` to be used in place of `->allow()`, and `false` instead of `->deny()` This allows more concise and intuitive code, by returning boolean statements:.
WITHOUT THIS: `return SOME_BOOLEAN_LOGIC ? $this->allow() : $this->deny(); WITH THIS: `return SOME_BOOLEAN_LOGIC;