Devise
Class

Devise\User\Permissions\RuleList

class RuleList

Properties

$closures
$rules

Methods

__construct(User $User)

Void __call(string $method, array $arguments = array())

Handle execution of the different types of methods

boolean isLoggedIn()

Is user logged in system

boolean isInGroup(string $groupname)

Checks if user is in a group

boolean isNotInGroup(string $groupname)

Check user is not in a group

boolean hasUserName(string $username)

Determine if a username or email is used for application login.

boolean hasEmail(string $email)

Check if email field equals specified email

boolean hasFieldValue(string $field, string $value)

Check db field for specific value

Details

at line 12
public __construct(User $User)

Parameters

User $User

at line 27
public Void __call(string $method, array $arguments = array())

Handle execution of the different types of methods

Parameters

string $method Name of function/method
array $arguments Any arguments required by method

Return Value

Void | Exception

at line 54
public boolean isLoggedIn()

Is user logged in system

Return Value

boolean

at line 65
public boolean isInGroup(string $groupname)

Checks if user is in a group

Parameters

string $groupname

Return Value

boolean

at line 85
public boolean isNotInGroup(string $groupname)

Check user is not in a group

Parameters

string $groupname

Return Value

boolean

at line 106
public boolean hasUserName(string $username)

Determine if a username or email is used for application login.

Then checks if username/email equals specified value

Parameters

string $username Specified username or email address

Return Value

boolean

at line 120
public boolean hasEmail(string $email)

Check if email field equals specified email

Parameters

string $email

Return Value

boolean

at line 132
public boolean hasFieldValue(string $field, string $value)

Check db field for specific value

Parameters

string $field
string $value

Return Value

boolean