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-08-02 17:59:33 +0400
committermattab <matthieu.aubry@gmail.com>2013-08-02 17:59:33 +0400
commita96ec40e983a8b64f4c25def541a519ff3670e6a (patch)
treebef2a5f7b1e9532dc96161334e23a553cdff7ea1 /plugins/DBStats/Controller.php
parent61997f45e4c39360000e815c9e0853ae04e2f56f (diff)
Refs #4059 Converting dozens of plugins/* classes to use Namespaces, \Piwik\Plugins\*
Added namespaces to functions.php files in the five plugins that had one Work in progress
Diffstat (limited to 'plugins/DBStats/Controller.php')
-rw-r--r--plugins/DBStats/Controller.php13
1 files changed, 7 insertions, 6 deletions
diff --git a/plugins/DBStats/Controller.php b/plugins/DBStats/Controller.php
index 51f2a00ae6..941b095f81 100644
--- a/plugins/DBStats/Controller.php
+++ b/plugins/DBStats/Controller.php
@@ -6,18 +6,19 @@
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
* @category Piwik_Plugins
- * @package Piwik_DBStats
+ * @package DBStats
*/
-use Piwik\Controller\Admin;
+namespace Piwik\Plugins\DBStats;
+
use Piwik\Piwik;
+use Piwik\Plugins\DBStats\API;
use Piwik\ViewDataTable;
use Piwik\View;
/**
- *
- * @package Piwik_DBStats
+ * @package DBStats
*/
-class Piwik_DBStats_Controller extends Admin
+class Controller extends \Piwik\Controller\Admin
{
/**
* Returns the index for this plugin. Shows every other report defined by this plugin,
@@ -38,7 +39,7 @@ class Piwik_DBStats_Controller extends Admin
$view->reportDataSummary = $this->getReportDataSummary(true);
$view->adminDataSummary = $this->getAdminDataSummary(true);
- list($siteCount, $userCount, $totalSpaceUsed) = Piwik_DBStats_API::getInstance()->getGeneralInformation();
+ list($siteCount, $userCount, $totalSpaceUsed) = API::getInstance()->getGeneralInformation();
$view->siteCount = Piwik::getPrettyNumber($siteCount);
$view->userCount = Piwik::getPrettyNumber($userCount);
$view->totalSpaceUsed = Piwik::getPrettySizeFromBytes($totalSpaceUsed);