IUserStorage
interface IUserStorage
Interface for persistent storage for user object data.
Constants
MANUAL |
Log-out reason IUserStorage::getLogoutReason() |
INACTIVITY |
Log-out reason IUserStorage::getLogoutReason() |
CLEAR_IDENTITY |
Log-out behavior |
Methods
Sets the authenticated status of this user.
Is this user authenticated?
Sets the user identity.
Returns current user identity, if any.
Enables log out from the persistent storage after inactivity (like '20 minutes'). Accepts flag IUserStorage::CLEAR_IDENTITY.
Why was user logged out?
Details
at line 30
IUserStorage
setAuthenticated(bool $state)
Sets the authenticated status of this user.
at line 35
bool
isAuthenticated()
Is this user authenticated?
at line 41
IUserStorage
setIdentity(IIdentity|null $identity)
Sets the user identity.
at line 46
IIdentity|null
getIdentity()
Returns current user identity, if any.
at line 52
IUserStorage
setExpiration(string|null $expire, int $flags = 0)
Enables log out from the persistent storage after inactivity (like '20 minutes'). Accepts flag IUserStorage::CLEAR_IDENTITY.
at line 57
int|null
getLogoutReason()
Why was user logged out?