function getSessionData_150(Am_Record $record, Am_Record $session) { $user = new JUser($record); $user->setParams(new JParameter()); try { $gids = array($record->gid); foreach ($this->getDb()->select("SELECT group_id FROM ?_jaclplus_user_group WHERE id = ?", $record->id) as $gr) { $gids[] = $gr['group_id']; } $gids = implode(',', $gids); $jaclplus = $this->getDb()->selectCell("SELECT value from ?_core_acl_aro_groups where id in (?)", $gids); $user->jaclplus = $jaclplus; $user->gids = $gids; } catch (Exception $e) { $this->getDi()->errorLogTable->logException($e); } $data = array('session.counter' => 1, 'session.timer.start' => time(), 'session.timer.last' => time(), 'session.timer.now' => time(), 'session.client.browser' => $this->getDi()->request->getServer('HTTP_USER_AGENT'), 'user' => $user, 'registry' => new JRegistry()); return '__default|' . serialize($data); }