diff options
| author | Max Kremmel <xing@synapse.plus.com> | 2007-06-22 12:35:26 +0000 |
|---|---|---|
| committer | Max Kremmel <xing@synapse.plus.com> | 2007-06-22 12:35:26 +0000 |
| commit | 643c5ff5b94066529aa1dd1e6ddf41ab86b731d1 (patch) | |
| tree | f8ee1333afb89794527ad87260131cc1e12a443a /item_chart.php | |
| parent | 7b3c4d681d6a88e4e4de5a7a28524f63da468ca5 (diff) | |
| download | stats-643c5ff5b94066529aa1dd1e6ddf41ab86b731d1.tar.gz stats-643c5ff5b94066529aa1dd1e6ddf41ab86b731d1.tar.bz2 stats-643c5ff5b94066529aa1dd1e6ddf41ab86b731d1.zip | |
massive stats overhaul. remove all non-stats code and allow packages to insert their own stats using a ::getStats method. view BitPage::getStats for an example on how it works. not sure if this is the best way to do it, but this way we'll have a unified look.
Diffstat (limited to 'item_chart.php')
| -rw-r--r-- | item_chart.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/item_chart.php b/item_chart.php index eb90839..3416f1b 100644 --- a/item_chart.php +++ b/item_chart.php @@ -1,6 +1,6 @@ <?php /** - * $Header: /cvsroot/bitweaver/_bit_stats/item_chart.php,v 1.4 2007/06/14 17:51:30 squareing Exp $ + * $Header: /cvsroot/bitweaver/_bit_stats/item_chart.php,v 1.5 2007/06/22 12:35:26 squareing Exp $ * * Copyright (c) 2004 bitweaver.org * Copyright (c) 2003 tikwiki.org @@ -8,7 +8,7 @@ * All Rights Reserved. See copyright.txt for details and a complete list of authors. * Licensed under the GNU LESSER GENERAL PUBLIC LICENSE. See license.txt for details * - * $Id: item_chart.php,v 1.4 2007/06/14 17:51:30 squareing Exp $ + * $Id: item_chart.php,v 1.5 2007/06/22 12:35:26 squareing Exp $ * @package stats * @subpackage functions */ @@ -24,8 +24,9 @@ global $gBitSystem; $gBitSystem->isPackageActive( 'stats' ); $gBitSystem->verifyPermission( 'p_stats_view' ); -// data to be displayed -$data = $statslib->get_item_chart_data( !empty( $_REQUEST['content_type_guid'] ) ? $_REQUEST['content_type_guid'] : NULL ); +$stats = new Statistics(); + +$data = $stats->getContentTypeChartData( !empty( $_REQUEST['content_type_guid'] ) ? $_REQUEST['content_type_guid'] : NULL ); $chart_type = !empty( $_REQUEST['chart_type'] ) ? $_REQUEST['chart_type'] : 'points'; if( !empty( $_REQUEST['content_type_guid'] ) ) { |
