diff options
author | mattab <matthieu.aubry@gmail.com> | 2013-07-20 11:09:46 +0400 |
---|---|---|
committer | mattab <matthieu.aubry@gmail.com> | 2013-07-20 11:09:46 +0400 |
commit | 0a63210e3eae7562af1a3dbee340eb1ee140db3d (patch) | |
tree | c9f7c3a36a4b344b25c12aa04fed0733efb3bfa0 /core/DataTable/Row.php | |
parent | 7ca35544d15cdb41b17283e693c8a14777c923ad (diff) |
Converting to namespace: Period*, Metrics, Segment, SegmentExpression, PluginsManager
Diffstat (limited to 'core/DataTable/Row.php')
-rw-r--r-- | core/DataTable/Row.php | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/core/DataTable/Row.php b/core/DataTable/Row.php index de1b38ae9d..4b2b42a695 100644 --- a/core/DataTable/Row.php +++ b/core/DataTable/Row.php @@ -8,6 +8,7 @@ * @category Piwik * @package Piwik */ +use Piwik\Metrics; /** * A DataTable is composed of rows. @@ -473,7 +474,7 @@ class Piwik_DataTable_Row // max_actions is a core metric that is generated in ArchiveProcess_Day. Therefore, it can be // present in any data table and is not part of the $aggregationOperations mechanism. - if ($columnToSumName == Piwik_Metrics::INDEX_MAX_ACTIONS) { + if ($columnToSumName == Metrics::INDEX_MAX_ACTIONS) { $operation = 'max'; } $newValue = $this->getColumnValuesMerged($operation, $thisColumnValue, $columnToSumValue); @@ -521,7 +522,7 @@ class Piwik_DataTable_Row && !$this->isSummaryRow() ) { // We shall update metadata, and keep the metadata with the _most visits or pageviews_, rather than first or last seen - $visits = max($rowToSum->getColumn(Piwik_Metrics::INDEX_PAGE_NB_HITS) || $rowToSum->getColumn(Piwik_Metrics::INDEX_NB_VISITS), + $visits = max($rowToSum->getColumn(Metrics::INDEX_PAGE_NB_HITS) || $rowToSum->getColumn(Metrics::INDEX_NB_VISITS), // Old format pre-1.2, @see also method doSumVisitsMetrics() $rowToSum->getColumn('nb_actions') || $rowToSum->getColumn('nb_visits')); if (($visits && $visits > $this->maxVisitsSummed) |