Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormattab <matthieu.aubry@gmail.com>2013-07-23 11:52:15 +0400
committermattab <matthieu.aubry@gmail.com>2013-07-23 11:52:15 +0400
commit5104d94f3b2250f766b9c520e2da8da9b4cab2e9 (patch)
tree5f30daf7bc14373fb1bbd0504ce11a771dafc02f /plugins/DBStats/Controller.php
parentae4b1f4e38077b174e4df5b7d4513d63fe026a24 (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.php9
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);