class UserHelper

Helper allows specific methods to be easily accessible through the DeviseUser facade.

Methods

__construct(RuleManager $RuleManager, UsersRepository $UsersRepository, Framework $Framework)

No description

boolean
__call(string $method, array $arguments)

Magic method to used to catch function(s) not found in RuleManager

DvsUser
currentUser()

Convenience function to get current user object

integer
currentUserId()

Convenience function to get current user's id

void
checkConditions(string $conditionNames, boolean $redirectOnFail = false)

Convenience function for handing a single condition name or an array of multiple condition names.

void
checkRule(string $method, array $arguments = array())

Checks for any user-defined rules/closures

Details

at line 42
__construct(RuleManager $RuleManager, UsersRepository $UsersRepository, Framework $Framework)

Parameters

RuleManager $RuleManager
UsersRepository $UsersRepository
Framework $Framework

at line 57
boolean __call(string $method, array $arguments)

Magic method to used to catch function(s) not found in RuleManager

Parameters

string $method
array $arguments

Return Value

boolean

at line 67
DvsUser currentUser()

Convenience function to get current user object

Return Value

DvsUser

at line 77
integer currentUserId()

Convenience function to get current user's id

Return Value

integer

at line 90
void checkConditions(string $conditionNames, boolean $redirectOnFail = false)

Convenience function for handing a single condition name or an array of multiple condition names.

Parameters

string $conditionNames | array $conditionNames
boolean $redirectOnFail

Return Value

void

at line 106
void checkRule(string $method, array $arguments = array())

Checks for any user-defined rules/closures

Parameters

string $method
array $arguments

Return Value

void