프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$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 |
메소드 | 설명 | |
---|---|---|
__call ( string $method, array $arguments = [] ) : Void | Exceptio\Exception | Handle execution of the different types of methods | |
__construct ( DvsUser $User, |
Construct a new RuleList |
메소드 | 설명 | |
---|---|---|
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 | |
리턴 | boolean |
protected isInGroups ( [type] $groupname ) : boolean | ||
$groupname | [type] | |
리턴 | boolean |
protected isNotInGroup ( string $groupname ) : boolean | ||
$groupname | string | |
리턴 | boolean |
protected isNotInGroups ( [type] $groupname ) : boolean | ||
$groupname | [type] | |
리턴 | boolean |
protected isNotLoggedIn ( ) : boolean | ||
리턴 | boolean |
protected showDeviseSpan ( [type] $key, $collection ) : [type] | ||
$key | [type] | |
리턴 | [type] |
protected Framework,Devise\Support $Framework | ||
리턴 |
public array $closures | ||
리턴 | array |
protected bool $isLoggedIn | ||
리턴 | boolean |
public array $rules | ||
리턴 | array |