XOOPS
2.6.0
|
Public Member Functions | |
__construct (Manager $session) | |
addUserToSession ($userId) | |
checkConfirmed () | |
establish () | |
recordUserLogin ($userId, $rememberMe=false) | |
recordUserLogout () | |
setConfirmed () | |
setNeedsConfirmed () | |
Protected Attributes | |
$session | |
$xoops = null | |
Definition at line 27 of file SessionUser.php.
Xoops\Core\Session\SessionUser::__construct | ( | Manager | $session | ) |
constructor
Manager | $session | the session manager object |
Definition at line 44 of file SessionUser.php.
References Xoops\Core\Session\SessionUser\$session, Xoops\getInstance(), and Xoops\session().
Xoops\Core\Session\SessionUser::addUserToSession | ( | $userId | ) |
Check the we have a remember me cookie, and apply if valid
integer | $userId | id of user to establish in the session |
Definition at line 119 of file SessionUser.php.
References Xoops\Core\Session\SessionUser\$session, Xoops\$user, and Xoops\Core\Session\SessionUser\setNeedsConfirmed().
Referenced by Xoops\Core\Session\SessionUser\establish(), and Xoops\Core\Session\SessionUser\recordUserLogin().
Xoops\Core\Session\SessionUser::checkConfirmed | ( | ) |
verify the authorization status is confirmed
Definition at line 166 of file SessionUser.php.
References Xoops\session().
Xoops\Core\Session\SessionUser::establish | ( | ) |
Check any user data in the current session and clear if invalid.
If no user data, check if "remember me" data should be applied
Definition at line 58 of file SessionUser.php.
References Xoops\Core\Session\SessionUser\$session, Xoops\Core\Session\SessionUser\addUserToSession(), and Xoops\Core\Session\SessionUser\setNeedsConfirmed().
Xoops\Core\Session\SessionUser::recordUserLogin | ( | $userId, | |
$rememberMe = false |
|||
) |
Record a login event in the session. This is to be called by the login process, i.e. the user has entered the name and password, and that combination was found valid.
integer | $userId | id of user to establish in the session |
boolean | $rememberMe | add a persistent login cookie |
Definition at line 88 of file SessionUser.php.
References Xoops\Core\Session\SessionUser\addUserToSession(), and Xoops\Core\Session\SessionUser\setConfirmed().
Xoops\Core\Session\SessionUser::recordUserLogout | ( | ) |
Record a login event in the session. This is to be called by the login process, i.e. the user has entered the name and password, and that combination was found valid.
Definition at line 105 of file SessionUser.php.
References Xoops\session().
Xoops\Core\Session\SessionUser::setConfirmed | ( | ) |
set authorization status to is confirmed
Definition at line 156 of file SessionUser.php.
References Xoops\session().
Referenced by Xoops\Core\Session\SessionUser\recordUserLogin().
Xoops\Core\Session\SessionUser::setNeedsConfirmed | ( | ) |
set authorization status to needs confirmed
Definition at line 146 of file SessionUser.php.
References Xoops\session().
Referenced by Xoops\Core\Session\SessionUser\addUserToSession(), and Xoops\Core\Session\SessionUser\establish().
|
protected |
Definition at line 33 of file SessionUser.php.
Referenced by Xoops\Core\Session\SessionUser\__construct(), Xoops\Core\Session\SessionUser\addUserToSession(), and Xoops\Core\Session\SessionUser\establish().
|
protected |
Definition at line 38 of file SessionUser.php.