Property | Type | Description | |
---|---|---|---|
$Framework | Framework components being used from Laravel's framework | ||
$RedirectHandler | RedirectHandler redirects user-defined permission conditions | ||
$RuleList | RuleList fetches list of rules |
Method | Description | |
---|---|---|
__construct ( |
Construct a new rule manager | |
addRule ( string $rule, callback $closure = null ) : Void | Add new element to rules array | |
evaluateResults ( $results, boolean $redirectOnFail, object $conditionObject ) : boolean | Determines if access allowed/denied by checking results array for any occurences of a "false" value | |
executeCondition ( object $conditionObject ) : array | Executes conditions one at a time and returns result | |
getClosure ( string $method ) : Array | Get all closures | |
getCondition ( string $conditionName ) : Void | Retrieve conditions JSON from permission conditions config | |
getNumberOfRequiredParametersForRule ( $ruleName ) : integer | Get all rules | |
getRules ( ) : Array | Get all rules | |
overwriteRule ( string $rule, callback $closure = null ) : Void | Add replaces element in rules array | |
runCondition ( string $conditionName, boolean $redirectOnFail, boolean $evaluateResults = true ) : Void | Begins condition checking process by retrieving condition by name/key and then executing its contents. |
Method | Description | |
---|---|---|
parseCondition ( &$conditions, $parentOperator = null ) : Void | Iterate thru conditions and determines if condition is true or false | |
ruleNameAvailable ( string $rule ) : boolean | Checks rules array to see if rule/function name has already been used for rule |
public __construct ( |
||
$RedirectHandler | ||
$Framework |
public executeCondition ( object $conditionObject ) : array | ||
$conditionObject | object | |
return | array |
public getClosure ( string $method ) : Array | ||
$method | string | |
return | Array |
public getCondition ( string $conditionName ) : Void | ||
$conditionName | string | |
return | Void |
public getNumberOfRequiredParametersForRule ( $ruleName ) : integer | ||
return | integer |
public overwriteRule ( string $rule, callback $closure = null ) : Void | ||
$rule | string | |
$closure | callback | |
return | Void |
protected Framework,Devise\Support $Framework | ||
return |
protected RedirectHandler,Devise\Users\Permissions $RedirectHandler | ||
return |