Property | Type | Description | |
---|---|---|---|
$closures | array | Closures are kept in an array and can be used to execute user-defined condition(s) permissions/closures by key | |
$rules | array | Rules are a list of built-in methods in this class which are kept in an array; They are used to find and execute methods by name |
Property | Type | Description | |
---|---|---|---|
$Framework | Framework components being used from Laravel's framework | ||
$User | User | User model to fetch database table "users" | |
$isLoggedIn | boolean | Is this user logged in? Cache the value on this object for performance reasons |
Method | Description | |
---|---|---|
__call ( string $method, array $arguments = [] ) : Void | Exceptio\Exception | Handle execution of the different types of methods | |
__construct ( DvsUser $User, |
Construct a new RuleList |
Method | Description | |
---|---|---|
hasEmail ( string $email ) : boolean | Check if email field equals specified email | |
hasFieldValue ( string $field, string $value ) : boolean | Check if database field is equal to the specified value | |
hasName ( string $name ) : boolean | Check if name field equals specified name value | |
hasUserName ( string $username ) : boolean | Check if username equals specified username value | |
isInGroup ( string $groupname ) : boolean | Checks if user is in a group | |
isInGroups ( [type] $groupname ) : boolean | Check to see if user is in all groups | |
isLoggedIn ( ) : boolean | Is user logged in system | |
isNotInGroup ( string $groupname ) : boolean | Check user is not in a group | |
isNotInGroups ( [type] $groupname ) : boolean | Check to see if user is not in all the groups | |
isNotLoggedIn ( ) : boolean | Is user not logged in system | |
showDeviseSpan ( [type] $key, $collection ) : [type] | Determines if we should show the devise span |
public __construct ( DvsUser $User, |
||
$User | DvsUser | |
$Framework |
protected hasUserName ( string $username ) : boolean | ||
$username | string | |
return | boolean |
protected isInGroups ( [type] $groupname ) : boolean | ||
$groupname | [type] | |
return | boolean |
protected isLoggedIn ( ) : boolean | ||
return | boolean |
protected isNotInGroup ( string $groupname ) : boolean | ||
$groupname | string | |
return | boolean |
protected isNotInGroups ( [type] $groupname ) : boolean | ||
$groupname | [type] | |
return | boolean |
protected isNotLoggedIn ( ) : boolean | ||
return | boolean |
protected showDeviseSpan ( [type] $key, $collection ) : [type] | ||
$key | [type] | |
return | [type] |
protected Framework,Devise\Support $Framework | ||
return |
protected User $User | ||
return | User |
public array $closures | ||
return | array |
protected bool $isLoggedIn | ||
return | boolean |
public array $rules | ||
return | array |