diff options
author | diosmosis <benaka@piwik.pro> | 2014-11-08 08:36:20 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-11-08 08:36:20 +0300 |
commit | bc5a8e3ee9fed5a1e50c024feb1f3f415f3dc699 (patch) | |
tree | a14d43451d8fd3a7c2852ac61159ac47f83efc77 /core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php | |
parent | 41f6d051a3c6a4083a807acdea4e681a02f8f9cb (diff) |
Document ProcessedMetric class.
Diffstat (limited to 'core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php')
-rw-r--r-- | core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php b/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php index 1c524adab2..eee1b90983 100644 --- a/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php +++ b/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php @@ -10,7 +10,6 @@ namespace Piwik\DataTable\Filter; use Piwik\DataTable; use Piwik\DataTable\Row; -use Piwik\Metrics; use Piwik\Piwik; use Piwik\Plugin\Metric; use Piwik\Plugins\Goals\Metrics\GoalSpecific\AverageOrderRevenue; @@ -110,7 +109,6 @@ class AddColumnsProcessedMetricsGoal extends AddColumnsProcessedMetrics $goals = $this->getGoalsInTable($table); - // TODO: all metrics depend on 'goals' row paremter $extraProcessedMetrics[] = new RevenuePerVisit(); if ($this->processOnlyIdGoal != self::GOALS_MINIMAL_REPORT) { foreach ($goals as $idGoal) { @@ -142,7 +140,8 @@ class AddColumnsProcessedMetricsGoal extends AddColumnsProcessedMetrics $table->setMetadata(DataTable::EXTRA_PROCESSED_METRICS_METADATA_NAME, $extraProcessedMetrics); - /*$expectedColumns = array_keys($this->expectedColumns); + /* TODO: remove this? + $expectedColumns = array_keys($this->expectedColumns); $rows = $table->getRows(); foreach ($rows as $row) { foreach ($expectedColumns as $name) { |