class UserStorage extends Object implements IUserStorage

Session storage for user object.

Methods

__construct(Session $sessionHandler)

No description

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?

getSessionSection($need)

Returns and initializes $this->sessionSection.

Details

at line 32
__construct(Session $sessionHandler)

No description

Parameters

Session $sessionHandler

at line 43
UserStorage setAuthenticated($state)

Sets the authenticated status of this user.

Parameters

$state

Return Value

UserStorage

at line 67
bool isAuthenticated()

Is this user authenticated?

Return Value

bool

at line 78
UserStorage setIdentity(IIdentity $identity = NULL)

Sets the user identity.

Parameters

IIdentity $identity

Return Value

UserStorage

at line 89
IIdentity|null getIdentity()

Returns current user identity, if any.

Return Value

IIdentity|null

at line 101
UserStorage setNamespace($namespace)

Changes namespace; allows more users to share a session.

Parameters

$namespace

Return Value

UserStorage

at line 115
string getNamespace()

Returns current namespace.

Return Value

string

at line 127
UserStorage setExpiration($time, $flags = 0)

Enables log out after inactivity.

Parameters

$time
$flags

Return Value

UserStorage

at line 152
int|null getLogoutReason()

Why was user logged out?

Return Value

int|null

at line 163
protected SessionSection getSessionSection($need)

Returns and initializes $this->sessionSection.

Parameters

$need

Return Value

SessionSection