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:
Diffstat (limited to 'core/DataArray.php')
-rw-r--r--core/DataArray.php10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/DataArray.php b/core/DataArray.php
index e9971997d2..5c2570392d 100644
--- a/core/DataArray.php
+++ b/core/DataArray.php
@@ -12,7 +12,7 @@ namespace Piwik;
use Exception;
use Piwik\Metrics;
-use Piwik_Tracker_GoalManager;
+use Piwik\Tracker\GoalManager;
/**
* The DataArray is a data structure used to aggregate datasets,
@@ -128,13 +128,13 @@ class DataArray
*/
protected static function makeEmptyGoalRow($idGoal)
{
- if ($idGoal > Piwik_Tracker_GoalManager::IDGOAL_ORDER) {
+ if ($idGoal > GoalManager::IDGOAL_ORDER) {
return array(Metrics::INDEX_GOAL_NB_CONVERSIONS => 0,
Metrics::INDEX_GOAL_NB_VISITS_CONVERTED => 0,
Metrics::INDEX_GOAL_REVENUE => 0,
);
}
- if ($idGoal == Piwik_Tracker_GoalManager::IDGOAL_ORDER) {
+ if ($idGoal == GoalManager::IDGOAL_ORDER) {
return array(Metrics::INDEX_GOAL_NB_CONVERSIONS => 0,
Metrics::INDEX_GOAL_NB_VISITS_CONVERTED => 0,
Metrics::INDEX_GOAL_REVENUE => 0,
@@ -145,7 +145,7 @@ class DataArray
Metrics::INDEX_GOAL_ECOMMERCE_ITEMS => 0,
);
}
- // idGoal == Piwik_Tracker_GoalManager::IDGOAL_CART
+ // idGoal == GoalManager::IDGOAL_CART
return array(Metrics::INDEX_GOAL_NB_CONVERSIONS => 0,
Metrics::INDEX_GOAL_NB_VISITS_CONVERTED => 0,
Metrics::INDEX_GOAL_REVENUE => 0,
@@ -276,7 +276,7 @@ class DataArray
$revenue = $conversions = 0;
foreach ($values[Metrics::INDEX_GOALS] as $idgoal => $goalValues) {
// Do not sum Cart revenue since it is a lost revenue
- if ($idgoal >= Piwik_Tracker_GoalManager::IDGOAL_ORDER) {
+ if ($idgoal >= GoalManager::IDGOAL_ORDER) {
$revenue += $goalValues[Metrics::INDEX_GOAL_REVENUE];
$conversions += $goalValues[Metrics::INDEX_GOAL_NB_CONVERSIONS];
}