PHP Class Devise\Users\Permissions\RuleList

Afficher le fichier Open project: devisephp/cms

Méthodes publiques

Свойство 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

Protected Properties

Свойство Type Description
$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

Méthodes publiques

Méthode Description
__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

Méthodes protégées

Méthode 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

Method Details

__call() public méthode

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
Résultat Void | Exceptio\Exception | Exception

__construct() public méthode

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

hasEmail() protected méthode

Check if email field equals specified email
protected hasEmail ( string $email ) : boolean
$email string
Résultat boolean

hasFieldValue() protected méthode

Check if database field is equal to the specified value
protected hasFieldValue ( string $field, string $value ) : boolean
$field string
$value string
Résultat boolean

hasName() protected méthode

Check if name field equals specified name value
protected hasName ( string $name ) : boolean
$name string
Résultat boolean

hasUserName() protected méthode

Check if username equals specified username value
protected hasUserName ( string $username ) : boolean
$username string
Résultat boolean

isInGroup() protected méthode

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
Résultat boolean

isInGroups() protected méthode

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

isLoggedIn() protected méthode

Is user logged in system
protected isLoggedIn ( ) : boolean
Résultat boolean

isNotInGroup() protected méthode

Check user is not in a group
protected isNotInGroup ( string $groupname ) : boolean
$groupname string
Résultat boolean

isNotInGroups() protected méthode

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

isNotLoggedIn() protected méthode

Is user not logged in system
protected isNotLoggedIn ( ) : boolean
Résultat boolean

showDeviseSpan() protected méthode

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

Property Details

$Framework protected_oe property

Framework components being used from Laravel's framework
protected Framework,Devise\Support $Framework
Résultat Devise\Support\Framework

$User protected_oe property

User model to fetch database table "users"
protected User $User
Résultat User

$closures public_oe property

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

$isLoggedIn protected_oe property

Is this user logged in? Cache the value on this object for performance reasons
protected bool $isLoggedIn
Résultat boolean

$rules public_oe property

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
Résultat array