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:
authormattab <matthieu.aubry@gmail.com>2013-06-16 08:17:18 +0400
committermattab <matthieu.aubry@gmail.com>2013-06-16 12:11:04 +0400
commitc1576a5e6cf303f8136e690e063c5974a526b1e0 (patch)
treef01ec05bc608a76a39ede442c6717af7102fe751 /plugins/CustomVariables
parent3fb1fbd55432081b562eb55a86d59f559d059b55 (diff)
Moving Log Aggregation logic to new LogAggregator object
Diffstat (limited to 'plugins/CustomVariables')
-rw-r--r--plugins/CustomVariables/Archiver.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/plugins/CustomVariables/Archiver.php b/plugins/CustomVariables/Archiver.php
index e456178ea8..4da4af9e29 100644
--- a/plugins/CustomVariables/Archiver.php
+++ b/plugins/CustomVariables/Archiver.php
@@ -55,7 +55,7 @@ class Piwik_CustomVariables_Archiver extends Piwik_PluginsArchiver
$where = "%s.$keyField != ''";
$dimensions = array($keyField, $valueField);
- $query = $this->getProcessor()->queryVisitsByDimension($dimensions, $where);
+ $query = $this->getLogAggregator()->queryVisitsByDimension($dimensions, $where);
$this->aggregateFromVisits($query, $keyField, $valueField);
// IF we query Custom Variables scope "page" either: Product SKU, Product Name,
@@ -65,16 +65,16 @@ class Piwik_CustomVariables_Archiver extends Piwik_PluginsArchiver
if (in_array($slot, array(3,4,5))) {
$additionalSelects = array( $this->getSelectAveragePrice() );
}
- $query = $this->getProcessor()->queryActionsByDimension($dimensions, $where, $additionalSelects);
+ $query = $this->getLogAggregator()->queryActionsByDimension($dimensions, $where, $additionalSelects);
$this->aggregateFromActions($query, $keyField, $valueField);
- $query = $this->getProcessor()->queryConversionsByDimension($dimensions, $where);
+ $query = $this->getLogAggregator()->queryConversionsByDimension($dimensions, $where);
$this->aggregateFromConversions($query, $keyField, $valueField);
}
protected function getSelectAveragePrice()
{
- return Piwik_ArchiveProcessor_Day::getSqlRevenue("AVG(log_link_visit_action.custom_var_v2)")
+ return Piwik_DataAccess_LogAggregator::getSqlRevenue("AVG(log_link_visit_action.custom_var_v2)")
. " as `" . Piwik_Archive::INDEX_ECOMMERCE_ITEM_PRICE_VIEWED . "`";
}