PHP 클래스 Devise\Users\Permissions\RuleList

파일 보기 프로젝트 열기: devisephp/cms

공개 프로퍼티들

프로퍼티 타입 설명
$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 Devise\Support\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, Framework $Framework ) 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

메소드 상세

__call() 공개 메소드

Handle execution of the different types of methods
public __call ( string $method, array $arguments = [] ) : Void | Exceptio\Exception
$method string Name of function/method
$arguments array Any arguments required by method
리턴 Void | Exceptio\Exception | Exception

__construct() 공개 메소드

Construct a new RuleList
public __construct ( DvsUser $User, Framework $Framework )
$User DvsUser
$Framework Devise\Support\Framework

hasEmail() 보호된 메소드

Check if email field equals specified email
protected hasEmail ( string $email ) : boolean
$email string
리턴 boolean

hasFieldValue() 보호된 메소드

Check if database field is equal to the specified value
protected hasFieldValue ( string $field, string $value ) : boolean
$field string
$value string
리턴 boolean

hasName() 보호된 메소드

Check if name field equals specified name value
protected hasName ( string $name ) : boolean
$name string
리턴 boolean

hasUserName() 보호된 메소드

Check if username equals specified username value
protected hasUserName ( string $username ) : boolean
$username string
리턴 boolean

isInGroup() 보호된 메소드

you can pass multiple groups in here isInGroup('group1', 'group2') means the user is in either 'group1' or 'group2'
protected isInGroup ( string $groupname ) : boolean
$groupname string
리턴 boolean

isInGroups() 보호된 메소드

isInGroup('group1', 'group2') means user is in both 'group1' AND 'group1'
protected isInGroups ( [type] $groupname ) : boolean
$groupname [type]
리턴 boolean

isLoggedIn() 보호된 메소드

Is user logged in system
protected isLoggedIn ( ) : boolean
리턴 boolean

isNotInGroup() 보호된 메소드

Check user is not in a group
protected isNotInGroup ( string $groupname ) : boolean
$groupname string
리턴 boolean

isNotInGroups() 보호된 메소드

Check to see if user is not in all the groups
protected isNotInGroups ( [type] $groupname ) : boolean
$groupname [type]
리턴 boolean

isNotLoggedIn() 보호된 메소드

Is user not logged in system
protected isNotLoggedIn ( ) : boolean
리턴 boolean

showDeviseSpan() 보호된 메소드

Determines if we should show the devise span
protected showDeviseSpan ( [type] $key, $collection ) : [type]
$key [type]
리턴 [type]

프로퍼티 상세

$Framework 보호되어 있는 프로퍼티

Framework components being used from Laravel's framework
protected Framework,Devise\Support $Framework
리턴 Devise\Support\Framework

$User 보호되어 있는 프로퍼티

User model to fetch database table "users"
protected User $User
리턴 User

$closures 공개적으로 프로퍼티

Closures are kept in an array and can be used to execute user-defined condition(s) permissions/closures by key
public array $closures
리턴 array

$isLoggedIn 보호되어 있는 프로퍼티

Is this user logged in? Cache the value on this object for performance reasons
protected bool $isLoggedIn
리턴 boolean

$rules 공개적으로 프로퍼티

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
public array $rules
리턴 array