UserStorage
class UserStorage implements IUserStorage
Session storage for user object.
Methods
setAuthenticated($state)
Sets the authenticated status of this user.
bool
isAuthenticated()
Is this user authenticated?
setIdentity(IIdentity $identity = null)
Sets the user identity.
IIdentity|null
getIdentity()
Returns current user identity, if any.
setNamespace($namespace)
Changes namespace; allows more users to share a session.
string
getNamespace()
Returns current namespace.
setExpiration($time, $flags = 0)
Enables log out after inactivity.
int|null
getLogoutReason()
Why was user logged out?
SessionSection|null
getSessionSection($need)
Returns and initializes $this->sessionSection.
Details
at line 31
__construct(Session $sessionHandler)
No description
at line 42
UserStorage
setAuthenticated($state)
Sets the authenticated status of this user.
at line 66
bool
isAuthenticated()
Is this user authenticated?
at line 77
UserStorage
setIdentity(IIdentity $identity = null)
Sets the user identity.
at line 88
IIdentity|null
getIdentity()
Returns current user identity, if any.
at line 100
UserStorage
setNamespace($namespace)
Changes namespace; allows more users to share a session.
at line 114
string
getNamespace()
Returns current namespace.
at line 126
UserStorage
setExpiration($time, $flags = 0)
Enables log out after inactivity.
at line 148
int|null
getLogoutReason()
Why was user logged out?
at line 159
protected SessionSection|null
getSessionSection($need)
Returns and initializes $this->sessionSection.
Traits
SmartObject