fmsystem-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Fmsystem-commits] [6661] API: set lid and export user from session


From: Sigurd Nes
Subject: [Fmsystem-commits] [6661] API: set lid and export user from session
Date: Thu, 09 Dec 2010 10:09:30 +0000

Revision: 6661
          http://svn.sv.gnu.org/viewvc/?view=rev&root=fmsystem&revision=6661
Author:   sigurdne
Date:     2010-12-09 10:09:30 +0000 (Thu, 09 Dec 2010)
Log Message:
-----------
API: set lid and export user from session

Modified Paths:
--------------
    trunk/phpgwapi/inc/class.sessions.inc.php

Modified: trunk/phpgwapi/inc/class.sessions.inc.php
===================================================================
--- trunk/phpgwapi/inc/class.sessions.inc.php   2010-12-09 08:19:03 UTC (rev 
6660)
+++ trunk/phpgwapi/inc/class.sessions.inc.php   2010-12-09 10:09:30 UTC (rev 
6661)
@@ -832,6 +832,7 @@
                public function set_account_id($account_id = 0)
                {
                        $this->_account_id = get_account_id($account_id);
+                       $this->_account_lid = 
$GLOBALS['phpgw']->accounts->id2lid($this->_account_id);
                }
 
                /**
@@ -1312,6 +1313,16 @@
                }
 
                /**
+               * Get userinfo to pass into $GLOBALS['phpgw_info']['user'] for 
asyncservice
+               *
+               * @return array user
+               */
+               public function get_user()
+               {
+                       return $this->_data;
+               }
+
+               /**
                 * Get a list of currently logged in sessions
                 *
                 * @return array list of sessions




reply via email to

[Prev in Thread] Current Thread [Next in Thread]