Source for file statistics.php
Documentation is available at statistics.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
* Statistics model class for Finder.
* @package Joomla.Administrator
* Method to get the component statistics
* @return object The component statistics
$query =
$db->getQuery(true);
$query->select('COUNT(term_id)')
->from($db->quoteName('#__finder_terms'));
$data->term_count =
$db->loadResult();
->select('COUNT(link_id)')
->from($db->quoteName('#__finder_links'));
$data->link_count =
$db->loadResult();
->from($db->quoteName('#__finder_taxonomy'))
->where($db->quoteName('parent_id') .
' = 1');
$data->taxonomy_branch_count =
$db->loadResult();
->from($db->quoteName('#__finder_taxonomy'))
->where($db->quoteName('parent_id') .
' > 1');
$data->taxonomy_node_count =
$db->loadResult();
->select('t.title AS type_title, COUNT(a.link_id) AS link_count')
->from($db->quoteName('#__finder_links') .
' AS a')
->join('INNER', $db->quoteName('#__finder_types') .
' AS t ON t.id = a.type_id')
->group('a.type_id, t.title')
->order($db->quoteName('type_title'), 'ASC');
$data->type_list =
$db->loadObjectList();
Documentation generated on Tue, 19 Nov 2013 15:14:18 +0100 by phpDocumentor 1.4.3