Source for file helper.php
Documentation is available at helper.php
* @copyright Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
* @license GNU General Public License version 2 or later; see LICENSE.txt
public static function &getList(&$params)
$query =
$db->getQuery(true);
$serverinfo =
$params->get('serverinfo');
$siteinfo =
$params->get('siteinfo');
$counter =
$params->get('counter');
$increase =
$params->get('increase');
$rows[$i] =
new stdClass;
$rows[$i]->title =
JText::_('MOD_STATS_OS');
$rows[$i] =
new stdClass;
$rows[$i]->title =
JText::_('MOD_STATS_PHP');
$rows[$i] =
new stdClass;
$rows[$i]->title =
JText::_($db->name);
$rows[$i]->data =
$db->getVersion();
$rows[$i] =
new stdClass;
$rows[$i]->title =
JTEXT::_('MOD_STATS_TIME');
$rows[$i]->data =
JHtml::_('date', 'now', 'H:i');
$rows[$i] =
new stdClass;
$rows[$i]->title =
JText::_('MOD_STATS_CACHING');
$rows[$i]->data =
$app->getCfg('caching') ?
JText::_('JENABLED'):
JText::_('JDISABLED');
$rows[$i] =
new stdClass;
$rows[$i]->title =
JText::_('MOD_STATS_GZIP');
$rows[$i]->data =
$app->getCfg('gzip') ?
JText::_('JENABLED'):
JText::_('JDISABLED');
$query->select('COUNT(id) AS count_users')
$users =
$db->loadResult();
->select('COUNT(id) AS count_items')
$items =
$db->loadResult();
->select('COUNT(id) AS count_links ')
$links =
$db->loadResult();
$rows[$i] =
new stdClass;
$rows[$i]->title =
JText::_('MOD_STATS_USERS');
$rows[$i]->data =
$users;
$rows[$i] =
new stdClass;
$rows[$i]->title =
JText::_('MOD_STATS_ARTICLES');
$rows[$i]->data =
$items;
$rows[$i] =
new stdClass;
$rows[$i]->title =
JText::_('MOD_STATS_WEBLINKS');
$rows[$i]->data =
$links;
->select('SUM(hits) AS count_hits')
$hits =
$db->loadResult();
$rows[$i] =
new stdClass;
$rows[$i]->title =
JText::_('MOD_STATS_ARTICLES_VIEW_HITS');
$rows[$i]->data =
$hits +
$increase;
Documentation generated on Tue, 19 Nov 2013 15:04:19 +0100 by phpDocumentor 1.4.3