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