Property | Type | Description | |
---|---|---|---|
$Framework | Framework components being used from Laravel's framework | ||
$RuleList | RuleList keeps on-going list of built-in and added rules | ||
$RuleManager | RuleManager manages rules | ||
$UsersRepository | UsersRepository fetches users and related data |
Method | Description | |
---|---|---|
__call ( string $method, array $arguments ) : boolean | Magic method to used to catch function(s) not found in RuleManager | |
__construct ( |
||
checkConditions ( string | array $conditionNames, boolean $redirectOnFail = false ) : void | Convenience function for handing a single condition name or an array of multiple condition names. | |
checkRule ( string $method, array $arguments = [] ) : void | Checks for any user-defined rules/closures | |
currentUser ( ) : DvsUser | Convenience function to get current user object | |
currentUserId ( ) : integer | Convenience function to get current user's id |
Method | Description | |
---|---|---|
checkConditionsArray ( array $conditionNamesArr = [], boolean $redirectOnFail = false ) : void | Checks conditions by name and then evaulates results |
public __construct ( |
||
$RuleManager | ||
$UsersRepository | ||
$Framework |
public currentUser ( ) : DvsUser | ||
return | DvsUser |
public currentUserId ( ) : integer | ||
return | integer |
protected Framework,Devise\Support $Framework | ||
return |
protected RuleList,Devise\Users\Permissions $RuleList | ||
return |
protected RuleManager,Devise\Users\Permissions $RuleManager | ||
return |