diff options
author | Simon Rettberg | 2015-03-02 18:42:52 +0100 |
---|---|---|
committer | Simon Rettberg | 2015-03-02 18:42:52 +0100 |
commit | 9358ac3f3fd26ec743c7aaa2245cdbb7bbe9fced (patch) | |
tree | 3956bf015bf862ab46380fbfaddf0e0fa631eb85 /inc | |
parent | Initial Commit (diff) | |
download | bwlp-webadmin-9358ac3f3fd26ec743c7aaa2245cdbb7bbe9fced.tar.gz bwlp-webadmin-9358ac3f3fd26ec743c7aaa2245cdbb7bbe9fced.tar.xz bwlp-webadmin-9358ac3f3fd26ec743c7aaa2245cdbb7bbe9fced.zip |
Second Commit
Diffstat (limited to 'inc')
-rw-r--r-- | inc/user.inc.php | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/inc/user.inc.php b/inc/user.inc.php index 30630d4..f023ae7 100644 --- a/inc/user.inc.php +++ b/inc/user.inc.php @@ -28,6 +28,11 @@ class User return self::$user !== false && self::$isShib === false; } + public static function getData() + { + return self::$user; + } + public static function getName() { if (!self::isLoggedIn()) @@ -60,6 +65,14 @@ class User return $org['organizationid']; } + public static function getOrganizationName() + { + $org = self::getOrganization(); + if (!isset($org['name'])) + return false; + return $org['name']; + } + public static function getRemoteOrganizationId() { if (empty(self::$user['organization'])) |