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-07 06:37:20 +0400
committermattab <matthieu.aubry@gmail.com>2013-06-07 06:37:20 +0400
commite7267041b56679f3f95d0a1d35836eec37d0d85c (patch)
treed5e2c0ce9f935cfa2a010f3853f97156b7ca1bbb /plugins/CustomVariables/Archiver.php
parentb53839f7e40f584066c13f60e5b37542b3c10cad (diff)
factoring out record names as const
Diffstat (limited to 'plugins/CustomVariables/Archiver.php')
-rw-r--r--plugins/CustomVariables/Archiver.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/CustomVariables/Archiver.php b/plugins/CustomVariables/Archiver.php
index 896b5335bc..f5df35ba38 100644
--- a/plugins/CustomVariables/Archiver.php
+++ b/plugins/CustomVariables/Archiver.php
@@ -12,7 +12,7 @@
class Piwik_CustomVariables_Archiver extends Piwik_PluginsArchiver
{
const LABEL_CUSTOM_VALUE_NOT_DEFINED = "Value not defined";
- const BLOB_NAME = 'CustomVariables_valueByName';
+ const CUSTOM_VARIABLE_RECORD_NAME = 'CustomVariables_valueByName';
protected $metricsByKey = array();
protected $metricsByKeyAndValue = array();
protected $maximumRowsInDataTableLevelZero;
@@ -42,7 +42,7 @@ class Piwik_CustomVariables_Archiver extends Piwik_PluginsArchiver
$columnToSort = Piwik_Archive::INDEX_NB_VISITS
);
- $this->getProcessor()->insertBlobRecord(self::BLOB_NAME, $blob);
+ $this->getProcessor()->insertBlobRecord(self::CUSTOM_VARIABLE_RECORD_NAME, $blob);
}
protected function aggregateCustomVariable($slot)
@@ -218,7 +218,7 @@ class Piwik_CustomVariables_Archiver extends Piwik_PluginsArchiver
public function archivePeriod()
{
$nameToCount = $this->getProcessor()->archiveDataTable(
- self::BLOB_NAME, null, $this->maximumRowsInDataTableLevelZero, $this->maximumRowsInSubDataTable,
+ self::CUSTOM_VARIABLE_RECORD_NAME, null, $this->maximumRowsInDataTableLevelZero, $this->maximumRowsInSubDataTable,
$columnToSort = Piwik_Archive::INDEX_NB_VISITS);
}
} \ No newline at end of file