class UserHelper
Methods
|
__construct(RuleManager $RuleManager, UsersRepository $UsersRepository)
|
||
| boolean |
__call(string $method, array $arguments)
Catch function(s) not found in RuleManager |
|
| User |
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 14
public
__construct(RuleManager $RuleManager, UsersRepository $UsersRepository)
at line 28
public boolean
__call(string $method, array $arguments)
Catch function(s) not found in RuleManager
at line 38
public User
currentUser()
Convenience function to get current user object.
at line 48
public integer
currentUserId()
Convenience function to get current user's id.
at line 61
public void
checkConditions(string $conditionNames, boolean $redirectOnFail = false)
Convenience function for handing a single condition name or an array of multiple condition names.
at line 77
public void
checkRule(string $method, array $arguments = array())
Checks for any user-defined rules/closures.