diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-07-23 11:52:15 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-07-23 11:52:15 +0400 |
commit | 5104d94f3b2250f766b9c520e2da8da9b4cab2e9 (patch) | |
tree | 5f30daf7bc14373fb1bbd0504ce11a771dafc02f /plugins/DBStats/Controller.php | |
parent | ae4b1f4e38077b174e4df5b7d4513d63fe026a24 (diff) |
Refs #4059 Work in progress: Conversion to use Namespaces of dozen more classes
Removed many Piwik_ functions, in Piwik 2 it is best practise to use the methods calls instead
Todo: finish converting core/ classes + convert plugins/ classes to use \Piwik\Plugin namespace + fix build + Merge master
Diffstat (limited to 'plugins/DBStats/Controller.php')
-rw-r--r-- | plugins/DBStats/Controller.php | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/plugins/DBStats/Controller.php b/plugins/DBStats/Controller.php index 7596dc4106..8194c29cc4 100644 --- a/plugins/DBStats/Controller.php +++ b/plugins/DBStats/Controller.php @@ -8,13 +8,16 @@ * @category Piwik_Plugins * @package Piwik_DBStats */ +use Piwik\Controller\Admin; use Piwik\Piwik; +use Piwik\ViewDataTable; +use Piwik\View; /** * * @package Piwik_DBStats */ -class Piwik_DBStats_Controller extends Piwik_Controller_Admin +class Piwik_DBStats_Controller extends Admin { /** * Returns the index for this plugin. Shows every other report defined by this plugin, @@ -26,7 +29,7 @@ class Piwik_DBStats_Controller extends Piwik_Controller_Admin public function index() { Piwik::checkUserIsSuperUser(); - $view = new Piwik_View('@DBStats/index'); + $view = new View('@DBStats/index'); $this->setBasicVariablesView($view); $view->databaseUsageSummary = $this->getDatabaseUsageSummary(true); @@ -248,7 +251,7 @@ class Piwik_DBStats_Controller extends Piwik_Controller_Admin 'estimated_size' => Piwik_Translate('DBStats_EstimatedSize') ); - $view = Piwik_ViewDataTable::factory($viewType); + $view = ViewDataTable::factory($viewType); $view->init($this->pluginName, $function, "DBStats.$function"); $view->setSortedColumn('label', $orderDir); $view->setLimit($limit); |