메소드 |
설명 |
|
_accessable ( $resources, $roles, array $options = [] ) : void |
_hasRole Compares the results from _getRolesByAuth with the array passed to it. |
|
_getRolesByAuth ( mixed $params, array $options = [] ) : array | mixed |
|
|
_hasRole ( $requesters, $params, array $options = [] ) |
|
|
_isAccessible ( array &$role, $params, array $options ) : boolean |
Checks if the Role grants access
If allow === false => no access
If requesters has no role => no access
If allows contains closures => return closures return
Otherwise => grants access |
|
_parseClosures ( array &$data, object $request, array &$roleOptions = [] ) : boolean |
_parseClosures Iterates over an array and runs any anonymous functions it
finds. Returns true if all of the closures it runs evaluate to true. $match
is passed by refference and any closures found are removed from it before the
method is complete. |
|
_run ( array &$data, mixed $request = null, array &$options = [] ) : void |
Itterates over an array and runs any anonymous functions it finds. Returns
true if all of the closures it runs evaluate to true. $match is passed by
reference and any closures found are removed from it before the method is complete. |
|