프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$Framework | Framework components being used from Laravel's framework | ||
$RedirectHandler | RedirectHandler redirects user-defined permission conditions | ||
$RuleList | RuleList fetches list of rules |
메소드 | 설명 | |
---|---|---|
__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. |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | array |
public getClosure ( string $method ) : Array | ||
$method | string | |
리턴 | Array |
public getCondition ( string $conditionName ) : Void | ||
$conditionName | string | |
리턴 | Void |
public getNumberOfRequiredParametersForRule ( $ruleName ) : integer | ||
리턴 | integer |
public overwriteRule ( string $rule, callback $closure = null ) : Void | ||
$rule | string | |
$closure | callback | |
리턴 | Void |
protected Framework,Devise\Support $Framework | ||
리턴 |
protected RedirectHandler,Devise\Users\Permissions $RedirectHandler | ||
리턴 |