FOSSology  4.4.0
Open Source License Compliance by Open Source Software
UserInfo.php
Go to the documentation of this file.
1 <?php
2 /*
3  SPDX-FileCopyrightText: © 2014 Siemens AG
4 
5  SPDX-License-Identifier: GPL-2.0-only
6 */
7 
9 
19 class UserInfo
20 {
21 
26  public function getUserId()
27  {
28  return $_SESSION['UserId'];
29  }
30 
35  public function getGroupId()
36  {
37  return $_SESSION['GroupId'];
38  }
39 }
Get user info from session.
Definition: UserInfo.php:20
getGroupId()
Get the group id from the session.
Definition: UserInfo.php:35
getUserId()
Get the user id from the session.
Definition: UserInfo.php:26
Utility functions for specific applications.