VuFind API Documentation

UserSessionPersistenceInterface

Interface for persisting user data in the session.

Tags
category

VuFind

author

Demian Katz demian.katz@villanova.edu

license

http://opensource.org/licenses/gpl-2.0.php GNU General Public License

link

Wiki

Table of Contents

addUserDataToSession()  : void
Update session container to store data representing a user (used by privacy mode).
addUserIdToSession()  : void
Update session container to store user ID (used outside of privacy mode).
clearUserFromSession()  : void
Clear the user data from the session.
getUserFromSession()  : UserEntityInterface|null
Build a user entity using data from a session container. Return null if user data cannot be found.
hasUserSessionData()  : bool
Is there user data currently stored in the session container?

Methods

addUserIdToSession()

Update session container to store user ID (used outside of privacy mode).

public addUserIdToSession(int $id) : void
Parameters
$id : int

User ID

Return values
void

hasUserSessionData()

Is there user data currently stored in the session container?

public hasUserSessionData() : bool
Return values
bool

Search results