diff options
Diffstat (limited to 'modules/ViewDataTable/Graph.php')
-rw-r--r-- | modules/ViewDataTable/Graph.php | 86 |
1 files changed, 43 insertions, 43 deletions
diff --git a/modules/ViewDataTable/Graph.php b/modules/ViewDataTable/Graph.php index debad0edd6..c96f465aa5 100644 --- a/modules/ViewDataTable/Graph.php +++ b/modules/ViewDataTable/Graph.php @@ -1,20 +1,20 @@ -<?php
-/**
- * Piwik - Open source web analytics
- *
- * @link http://piwik.org
- * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later
- * @version $Id$
- *
- * @package Piwik_ViewDataTable
- */
-
-/**
+<?php +/** + * Piwik - Open source web analytics + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html Gpl v3 or later + * @version $Id$ + * + * @package Piwik_ViewDataTable + */ + +/** * This class generates the HTML code to embed to flash graphs in the page. * It doesn't call the API but simply prints the html snippet. - *
- * @package Piwik_ViewDataTable
- *
+ * + * @package Piwik_ViewDataTable + * */ abstract class Piwik_ViewDataTable_Graph extends Piwik_ViewDataTable { @@ -74,7 +74,7 @@ abstract class Piwik_ViewDataTable_Graph extends Piwik_ViewDataTable $this->id = $this->getUniqIdTable(); $view->graphType = $this->graphType; - $this->parametersToModify['action'] = $this->currentControllerAction;
+ $this->parametersToModify['action'] = $this->currentControllerAction; $url = Piwik_Url::getCurrentQueryStringWithParametersModified($this->parametersToModify); $view->jsInvocationTag = $this->getFlashInvocationCode($url); $view->urlData = $url; @@ -87,7 +87,7 @@ abstract class Piwik_ViewDataTable_Graph extends Piwik_ViewDataTable $view->javascriptVariablesToSet = $this->getJavascriptVariablesToSet(); $view->showFooter = $this->getShowFooter(); $this->view = $view; - }
+ } protected function getFlashInvocationCode( $url = 'libs/open-flash-chart/data-files/nodata.txt', $use_swfobject = true ) { @@ -165,32 +165,32 @@ class Piwik_ViewDataTable_Graph_ChartEvolution extends Piwik_ViewDataTable_Graph $this->setParametersToModify(array('date' => 'last30')); $this->doNotShowFooter(); } -}
-/**
+} +/** * Generates HTML embed for the Pie chart - *
- * @package Piwik_ViewDataTable
- *
- */
-class Piwik_ViewDataTable_Graph_ChartPie extends Piwik_ViewDataTable_Graph
-{
- function __construct()
- {
- $this->valueParameterViewDataTable = 'generateDataChartPie';
- }
-}
-
-/**
+ * + * @package Piwik_ViewDataTable + * + */ +class Piwik_ViewDataTable_Graph_ChartPie extends Piwik_ViewDataTable_Graph +{ + function __construct() + { + $this->valueParameterViewDataTable = 'generateDataChartPie'; + } +} + +/** * * Generates HTML embed for the vertical bar chart - *
- * @package Piwik_ViewDataTable
- *
- */
-class Piwik_ViewDataTable_Graph_ChartVerticalBar extends Piwik_ViewDataTable_Graph
-{
- function __construct()
- {
- $this->valueParameterViewDataTable = 'generateDataChartVerticalBar';
- }
-}
+ * + * @package Piwik_ViewDataTable + * + */ +class Piwik_ViewDataTable_Graph_ChartVerticalBar extends Piwik_ViewDataTable_Graph +{ + function __construct() + { + $this->valueParameterViewDataTable = 'generateDataChartVerticalBar'; + } +} |