diff options
author | Thomas Steur <thomas.steur@gmail.com> | 2013-10-21 01:06:47 +0400 |
---|---|---|
committer | Thomas Steur <thomas.steur@gmail.com> | 2013-10-21 01:06:47 +0400 |
commit | 2560e83517536859ca62440c14b04ec9db2af00e (patch) | |
tree | 6edea6ec0752aa562d85cc4a45655cbe0e867d54 /plugins/DBStats/Controller.php | |
parent | 37fc1f1cd10dfef86ac429af0f6254436d0d6ccb (diff) |
It was confusing to have a coreViewDataTable and pluginViewDataTable class. In addition the coreViewDataTable did two things: Instance creation and managing all viewDataTables --> two new classes
Diffstat (limited to 'plugins/DBStats/Controller.php')
-rw-r--r-- | plugins/DBStats/Controller.php | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/plugins/DBStats/Controller.php b/plugins/DBStats/Controller.php index 807357ad8f..696f52838a 100644 --- a/plugins/DBStats/Controller.php +++ b/plugins/DBStats/Controller.php @@ -13,7 +13,7 @@ namespace Piwik\Plugins\DBStats; use Piwik\MetricsFormatter; use Piwik\Piwik; use Piwik\View; -use Piwik\ViewDataTable; +use Piwik\ViewDataTable\Factory; /** * @package DBStats @@ -58,7 +58,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin public function getDatabaseUsageSummary($fetch = false) { Piwik::checkUserIsSuperUser(); - return ViewDataTable::renderReport($this->pluginName, __FUNCTION__, $fetch); + return Factory::renderReport($this->pluginName, __FUNCTION__, $fetch); } /** @@ -72,7 +72,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin public function getTrackerDataSummary($fetch = false) { Piwik::checkUserIsSuperUser(); - return ViewDataTable::renderReport($this->pluginName, __FUNCTION__, $fetch); + return Factory::renderReport($this->pluginName, __FUNCTION__, $fetch); } /** @@ -86,7 +86,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin public function getMetricDataSummary($fetch = false) { Piwik::checkUserIsSuperUser(); - return ViewDataTable::renderReport($this->pluginName, __FUNCTION__, $fetch); + return Factory::renderReport($this->pluginName, __FUNCTION__, $fetch); } /** @@ -100,7 +100,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin public function getMetricDataSummaryByYear($fetch = false) { Piwik::checkUserIsSuperUser(); - return ViewDataTable::renderReport($this->pluginName, __FUNCTION__, $fetch); + return Factory::renderReport($this->pluginName, __FUNCTION__, $fetch); } /** @@ -114,7 +114,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin public function getReportDataSummary($fetch = false) { Piwik::checkUserIsSuperUser(); - return ViewDataTable::renderReport($this->pluginName, __FUNCTION__, $fetch); + return Factory::renderReport($this->pluginName, __FUNCTION__, $fetch); } /** @@ -128,7 +128,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin public function getReportDataSummaryByYear($fetch = false) { Piwik::checkUserIsSuperUser(); - return ViewDataTable::renderReport($this->pluginName, __FUNCTION__, $fetch); + return Factory::renderReport($this->pluginName, __FUNCTION__, $fetch); } /** @@ -144,7 +144,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin public function getIndividualReportsSummary($fetch = false) { Piwik::checkUserIsSuperUser(); - return ViewDataTable::renderReport($this->pluginName, __FUNCTION__, $fetch); + return Factory::renderReport($this->pluginName, __FUNCTION__, $fetch); } /** @@ -160,7 +160,7 @@ class Controller extends \Piwik\Plugin\ControllerAdmin public function getIndividualMetricsSummary($fetch = false) { Piwik::checkUserIsSuperUser(); - return ViewDataTable::renderReport($this->pluginName, __FUNCTION__, $fetch); + return Factory::renderReport($this->pluginName, __FUNCTION__, $fetch); } /** @@ -177,6 +177,6 @@ class Controller extends \Piwik\Plugin\ControllerAdmin public function getAdminDataSummary($fetch = false) { Piwik::checkUserIsSuperUser(); - return ViewDataTable::renderReport($this->pluginName, __FUNCTION__, $fetch); + return Factory::renderReport($this->pluginName, __FUNCTION__, $fetch); } } |