diff options
Diffstat (limited to 'plugins/ExampleUI')
-rw-r--r-- | plugins/ExampleUI/Reports/GetPlanetRatios.php | 5 | ||||
-rw-r--r-- | plugins/ExampleUI/Reports/GetTemperatures.php | 4 |
2 files changed, 3 insertions, 6 deletions
diff --git a/plugins/ExampleUI/Reports/GetPlanetRatios.php b/plugins/ExampleUI/Reports/GetPlanetRatios.php index df18f9027c..22c6d60c44 100644 --- a/plugins/ExampleUI/Reports/GetPlanetRatios.php +++ b/plugins/ExampleUI/Reports/GetPlanetRatios.php @@ -8,7 +8,6 @@ namespace Piwik\Plugins\ExampleUI\Reports; -use Piwik\Plugin\Report; use Piwik\Plugin\ViewDataTable; use Piwik\Plugins\CoreVisualizations\Visualizations\Cloud; use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Pie; @@ -33,7 +32,7 @@ class GetPlanetRatios extends Base public function getDefaultTypeViewDataTable() { - return PIE::ID; + return Pie::ID; } public function configureWidgets(WidgetsList $widgetsList, ReportWidgetFactory $factory) @@ -56,7 +55,7 @@ class GetPlanetRatios extends Base { $view->config->addTranslation('value', 'times the diameter of Earth'); - if ($view->isViewDataTableId(PIE::ID)) { + if ($view->isViewDataTableId(Pie::ID)) { $view->config->columns_to_display = array('value'); $view->config->selectable_columns = array('value'); diff --git a/plugins/ExampleUI/Reports/GetTemperatures.php b/plugins/ExampleUI/Reports/GetTemperatures.php index cf14b0a2e6..adc2e3fbda 100644 --- a/plugins/ExampleUI/Reports/GetTemperatures.php +++ b/plugins/ExampleUI/Reports/GetTemperatures.php @@ -9,12 +9,10 @@ namespace Piwik\Plugins\ExampleUI\Reports; use Piwik\Piwik; -use Piwik\Plugin\Report; use Piwik\Plugin\ViewDataTable; use Piwik\Plugins\CoreVisualizations\Visualizations\JqplotGraph\Bar; use Piwik\Plugin\Manager as PluginManager; use Piwik\Report\ReportWidgetFactory; -use Piwik\View; use Piwik\Widget\WidgetsList; /** @@ -57,7 +55,7 @@ class GetTemperatures extends Base public function configureView(ViewDataTable $view) { - if ($view->isViewDataTableId(BAR::ID)) { + if ($view->isViewDataTableId(Bar::ID)) { $view->config->y_axis_unit = '°C'; $view->config->show_footer = false; |