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/Plugin/Metric.php | |
parent | 6bc507763db1f66f26c421c8bb736a312b9871d1 (diff) |
Rename Metric::getColumn to Metric::getMetric and get rid of Metrics\Base.
Diffstat (limited to 'core/Plugin/Metric.php')
-rw-r--r-- | core/Plugin/Metric.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/Plugin/Metric.php b/core/Plugin/Metric.php index 2c4410c548..af4fbcb9c4 100644 --- a/core/Plugin/Metric.php +++ b/core/Plugin/Metric.php @@ -71,13 +71,13 @@ abstract class Metric /** * TODO */ - public function getColumn($row, $columnName, $mappingIdToName = null) + public static function getMetric($row, $columnName, $mappingIdToName = null) { if (empty($mappingIdToName)) { $mappingIdToName = Metrics::getMappingFromNameToId(); } - if ($row instanceof Row) { + if ($row instanceof Row) { // TODO: benchmark w/ array-access (so we don't need this if statement). $value = $row->getColumn($columnName); if ($value === false && isset($mappingIdToName[$columnName]) |