diff options
author | diosmosis <benaka@piwik.pro> | 2014-11-08 07:15:11 +0300 |
---|---|---|
committer | diosmosis <benaka@piwik.pro> | 2014-11-08 07:15:11 +0300 |
commit | 97dc9e2897fd5d365926af05078cf4f9941dd01a (patch) | |
tree | 5968b89ca0d2b099107bf5e91f9ecf3db3eaa279 /core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php | |
parent | 6bc507763db1f66f26c421c8bb736a312b9871d1 (diff) |
Rename Metric::getColumn to Metric::getMetric and get rid of Metrics\Base.
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 aed53e3d30..1410103174 100644 --- a/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php +++ b/core/DataTable/Filter/AddColumnsProcessedMetricsGoal.php @@ -12,6 +12,7 @@ use Piwik\DataTable; use Piwik\DataTable\Row; use Piwik\Metrics; use Piwik\Piwik; +use Piwik\Plugin\Metric; use Piwik\Plugins\Goals\Metrics\GoalSpecific\AverageOrderRevenue; use Piwik\Plugins\Goals\Metrics\GoalSpecific\ConversionRate; use Piwik\Plugins\Goals\Metrics\GoalSpecific\Conversions; @@ -160,11 +161,9 @@ class AddColumnsProcessedMetricsGoal extends AddColumnsProcessedMetrics private function getGoalsInTable(DataTable $table) { - $metrics = new Metrics\Base(); // TODO: should probably get rid of Base too... - $result = array(); foreach ($table->getRows() as $row) { - $goals = $metrics->getColumn($row, Metrics::INDEX_GOALS); + $goals = Metric::getMetric($row, Metrics::INDEX_GOALS); if (!$goals) { continue; } |