コード例 #1
0
ファイル: Manager.php プロジェクト: htw-pk15/vufind
 /**
  * Updates the user information in the session.
  *
  * @param UserRow $user User object to store in the session
  *
  * @return void
  */
 public function updateSession($user)
 {
     $this->currentUser = $user;
     $this->session->userId = $user->id;
     $this->cookieManager->clear('loggedOut');
 }
コード例 #2
0
ファイル: Manager.php プロジェクト: bbeckman/NDL-VuFind2
 /**
  * Updates the user information in the session.
  *
  * @param UserRow $user User object to store in the session
  *
  * @return void
  */
 public function updateSession($user)
 {
     $this->currentUser = $user;
     if ($this->inPrivacyMode()) {
         $this->session->userDetails = $user->toArray();
     } else {
         $this->session->userId = $user->id;
     }
     $this->cookieManager->clear('loggedOut');
 }