diff options
author | Fabian Becker <halfdan@xnorfz.de> | 2013-04-07 19:47:08 +0400 |
---|---|---|
committer | Fabian Becker <halfdan@xnorfz.de> | 2013-04-07 19:47:08 +0400 |
commit | e9d6762a91fec0cc574d3c099529aa284a2689c0 (patch) | |
tree | b5e004873177f006df2392824b1a75d7471d612d /plugins/DBStats/Controller.php | |
parent | 525cb974bdaba99f67b49433b7e37116a2db831a (diff) |
DBStats plugin converted to twig
Diffstat (limited to 'plugins/DBStats/Controller.php')
-rw-r--r-- | plugins/DBStats/Controller.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/plugins/DBStats/Controller.php b/plugins/DBStats/Controller.php index ab0de6a292..2adc0cc416 100644 --- a/plugins/DBStats/Controller.php +++ b/plugins/DBStats/Controller.php @@ -25,7 +25,7 @@ class Piwik_DBStats_Controller extends Piwik_Controller_Admin public function index() { Piwik::checkUserIsSuperUser(); - $view = Piwik_View::factory('index'); + $view = new Piwik_View('@DBStats/index'); $this->setBasicVariablesView($view); $view->menu = Piwik_GetAdminMenu(); @@ -49,6 +49,7 @@ class Piwik_DBStats_Controller extends Piwik_Controller_Admin * * @param bool $fetch If true, the rendered HTML datatable is returned, otherwise, * it is echoed. + * @return string */ public function getDatabaseUsageSummary($fetch = false) { @@ -76,6 +77,7 @@ class Piwik_DBStats_Controller extends Piwik_Controller_Admin * * @param bool $fetch If true, the rendered HTML datatable is returned, otherwise, * it is echoed. + * @return string|void */ public function getTrackerDataSummary($fetch = false) { @@ -92,6 +94,7 @@ class Piwik_DBStats_Controller extends Piwik_Controller_Admin * * @param bool $fetch If true, the rendered HTML datatable is returned, otherwise, * it is echoed. + * @return string|void */ public function getMetricDataSummary($fetch = false) { @@ -109,6 +112,7 @@ class Piwik_DBStats_Controller extends Piwik_Controller_Admin * * @param bool $fetch If true, the rendered HTML datatable is returned, otherwise, * it is echoed. + * @return string|void */ public function getMetricDataSummaryByYear($fetch = false) { @@ -127,6 +131,7 @@ class Piwik_DBStats_Controller extends Piwik_Controller_Admin * * @param bool $fetch If true, the rendered HTML datatable is returned, otherwise, * it is echoed. + * @return string|void */ public function getReportDataSummary($fetch = false) { @@ -144,6 +149,7 @@ class Piwik_DBStats_Controller extends Piwik_Controller_Admin * * @param bool $fetch If true, the rendered HTML datatable is returned, otherwise, * it is echoed. + * @return string|void */ public function getReportDataSummaryByYear($fetch = false) { @@ -164,6 +170,7 @@ class Piwik_DBStats_Controller extends Piwik_Controller_Admin * * @param bool $fetch If true, the rendered HTML datatable is returned, otherwise, * it is echoed. + * @return string|void */ public function getIndividualReportsSummary($fetch = false) { @@ -190,6 +197,7 @@ class Piwik_DBStats_Controller extends Piwik_Controller_Admin * * @param bool $fetch If true, the rendered HTML datatable is returned, otherwise, * it is echoed. + * @return string|void */ public function getIndividualMetricsSummary($fetch = false) { @@ -212,6 +220,7 @@ class Piwik_DBStats_Controller extends Piwik_Controller_Admin * * @param bool $fetch If true, the rendered HTML datatable is returned, otherwise, * it is echoed. + * @return string|void */ public function getAdminDataSummary($fetch = false) { |