Source for file helper.php
Documentation is available at helper.php
* @package Joomla.Administrator
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
* @package Joomla.Administrator
* Get a list of logged users.
* @param JRegistry &$params The module parameters.
* @return mixed An array of users, or false on error.
* @throws RuntimeException
public static function getList(&$params)
$query =
$db->getQuery(true)
->select('s.time, s.client_id, u.id, u.name, u.username')
->from('#__session AS s')
->join('LEFT', '#__users AS u ON s.userid = u.id')
$db->setQuery($query, 0, $params->get('count', 5));
$results =
$db->loadObjectList();
catch
(RuntimeException $e)
foreach ($results as $k =>
$result)
$results[$k]->logoutLink =
'';
if ($user->authorise('core.manage', 'com_users'))
$results[$k]->editLink =
JRoute::_('index.php?option=com_users&task=user.edit&id=' .
$result->id);
$results[$k]->logoutLink =
JRoute::_('index.php?option=com_login&task=logout&uid=' .
$result->id .
'&' .
JSession::getFormToken() .
'=1');
if ($params->get('name', 1) ==
0)
$results[$k]->name =
$results[$k]->username;
* Get the alternate title for the module
* @param JRegistry $params The module parameters.
* @return string The alternate title for the module.
public static function getTitle($params)
return JText::plural('MOD_LOGGED_TITLE', $params->get('count'));
Documentation generated on Tue, 19 Nov 2013 15:04:24 +0100 by phpDocumentor 1.4.3