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
path: root/core/View
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 /core/View
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 'core/View')
-rw-r--r--core/View/Interface.php2
-rw-r--r--core/View/ReportsByDimension.php9
2 files changed, 7 insertions, 4 deletions
diff --git a/core/View/Interface.php b/core/View/Interface.php
index 1998ead861..a1730cebef 100644
--- a/core/View/Interface.php
+++ b/core/View/Interface.php
@@ -10,7 +10,7 @@
*/
/**
- * Rendering interface for Piwik_View and Piwik_Visualization
+ * Rendering interface for View and Piwik_Visualization
*
* @package Piwik
*/
diff --git a/core/View/ReportsByDimension.php b/core/View/ReportsByDimension.php
index 39da988de2..69ac869eb8 100644
--- a/core/View/ReportsByDimension.php
+++ b/core/View/ReportsByDimension.php
@@ -8,6 +8,9 @@
* @category Piwik
* @package SmartyPlugins
*/
+use Piwik\FrontController;
+use Piwik\View;
+use Piwik\Url;
/**
* A facade that makes it easier to use the '_reportsByDimension.twig' template.
@@ -16,7 +19,7 @@
* loads them by AJAX when clicked. The loaded report is displayed to the right
* of the report listing.
*/
-class Piwik_View_ReportsByDimension extends Piwik_View
+class Piwik_View_ReportsByDimension extends View
{
/**
* Constructor.
@@ -47,7 +50,7 @@ class Piwik_View_ReportsByDimension extends Piwik_View
$categories[$category][] = array(
'title' => $title,
'params' => $params,
- 'url' => Piwik_Url::getCurrentQueryStringWithParametersModified($params)
+ 'url' => Url::getCurrentQueryStringWithParametersModified($params)
);
$this->dimensionCategories = $categories;
}
@@ -93,7 +96,7 @@ class Piwik_View_ReportsByDimension extends Piwik_View
$module = $firstReportInfo['params']['module'];
$action = $firstReportInfo['params']['action'];
- $this->firstReport = Piwik_FrontController::getInstance()->fetchDispatch($module, $action);
+ $this->firstReport = FrontController::getInstance()->fetchDispatch($module, $action);
$_GET = $oldGet;
$_POST = $oldPost;