UserManager
class UserManager implements EventTriggerableInterface, DispatcherAwareInterface (View source)
The UserManager class.
Traits
Methods
UserManager constructor.
authenticate
Method to get property Results
login
makeUserLogin
logout
getUser
Alias of getUser().
save
delete
addPolicy
registerPolicyProvider
addAuthMethod
Method to get property Handler
hasHandler
Method to get property Authorisation
Method to set property authorisation
Method to get property Authentication
Method to set property authentication
Details
at line line 63
__construct(UserHandlerInterface $handler = null, AuthenticationInterface $authentication = null, AuthorisationInterface $authorisation = null, DispatcherInterface $dispatcher = null)
UserManager constructor.
at line line 81
bool
authorise(string $policy, UserDataInterface $user, mixed $data)
authorise
at line line 93
bool|Credential
authenticate(Credential $credential)
authenticate
at line line 103
array
getAuthResults()
Method to get property Results
at line line 119
boolean
login(array|object $user, bool $remember = false, array $options = array())
login
at line line 193
boolean
makeUserLoggedIn(mixed $user)
makeUserLogin
at line line 220
boolean
logout(array|object $conditions = array(), array $options = array())
logout
at line line 259
UserDataInterface
getUser(array $conditions = array())
getUser
at line line 278
UserDataInterface
get(array $conditions = array())
Alias of getUser().
at line line 292
UserDataInterface
save(array $user = array(), array $options = array())
save
at line line 332
boolean
delete(array $conditions = null, array $options = array())
delete
at line line 362
UserManager
addPolicy(string $name, callable|PolicyInterface $handler)
addPolicy
at line line 376
UserManager
registerPolicyProvider(PolicyProviderInterface $provider)
registerPolicyProvider
at line line 391
UserManager
addAuthMethod(string $name, MethodInterface $method)
addAuthMethod
at line line 403
UserHandlerInterface
getHandler()
Method to get property Handler
at line line 420
UserManager
setHandler(UserHandlerInterface $handler)
Method to set property handler
at line line 432
boolean
hasHandler()
hasHandler
at line line 442
AuthorisationInterface
getAuthorisation()
Method to get property Authorisation
at line line 454
UserManager
setAuthorisation(AuthorisationInterface $authorisation)
Method to set property authorisation
at line line 466
AuthenticationInterface
getAuthentication()
Method to get property Authentication
at line line 478
UserManager
setAuthentication(AuthenticationInterface $authentication)
Method to set property authentication