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-11-05 14:10:45 +0400
committermattab <matthieu.aubry@gmail.com>2013-11-05 14:10:45 +0400
commit16fb4919ef3d3674663d5cbc69b69097b861b95d (patch)
treeed932c9088e72569b42959aa5d259cefc8340aa6 /core/ArchiveProcessor.php
parent74b81758637e420732a398813baed3c17cb2ce40 (diff)
Refs #4278 Cleanup these Parameters objects
Diffstat (limited to 'core/ArchiveProcessor.php')
-rw-r--r--core/ArchiveProcessor.php122
1 files changed, 61 insertions, 61 deletions
diff --git a/core/ArchiveProcessor.php b/core/ArchiveProcessor.php
index e133ac7bbb..7587f7d4e6 100644
--- a/core/ArchiveProcessor.php
+++ b/core/ArchiveProcessor.php
@@ -138,67 +138,6 @@ class ArchiveProcessor
}
/**
- * Caches multiple numeric records in the archive for this processor's site, period
- * and segment.
- *
- * @param array $numericRecords A name-value mapping of numeric values that should be
- * archived, eg,
- * ```
- * array('Referrers_distinctKeywords' => 23, 'Referrers_distinctCampaigns' => 234)
- * ```
- * @api
- */
- public function insertNumericRecords($numericRecords)
- {
- foreach ($numericRecords as $name => $value) {
- $this->insertNumericRecord($name, $value);
- }
- }
-
- /**
- * Caches a single numeric record in the archive for this processor's site, period and
- * segment.
- *
- * Numeric values are not inserted if they equal 0.
- *
- * @param string $name The name of the numeric value, eg, `'Referrers_distinctKeywords'`.
- * @param float $value The numeric value.
- * @api
- */
- public function insertNumericRecord($name, $value)
- {
- $value = round($value, 2);
- $this->archiveWriter->insertRecord($name, $value);
- }
-
- public function getNumberOfVisits()
- {
- return $this->numberOfVisits;
- }
-
- public function getNumberOfVisitsConverted()
- {
- return $this->numberOfVisitsConverted;
- }
-
- /**
- * Caches one or more blob records in the archive for this processor's site, period
- * and segment.
- *
- * @param string $name The name of the record, eg, 'Referrers_type'.
- * @param string|array $values A blob string or an array of blob strings. If an array
- * is used, the first element in the array will be inserted
- * with the `$name` name. The others will be inserted with
- * `$name . '_' . $index` as the record name (where $index is
- * the index of the blob record in `$values`).
- * @api
- */
- public function insertBlobRecord($name, $values)
- {
- $this->archiveWriter->insertBlobRecord($name, $values);
- }
-
- /**
* Array of (column name before => column name renamed) of the columns for which sum operation is invalid.
* These columns will be renamed as per this mapping.
* @var array
@@ -301,6 +240,67 @@ class ArchiveProcessor
return $results;
}
+ public function getNumberOfVisits()
+ {
+ return $this->numberOfVisits;
+ }
+
+ public function getNumberOfVisitsConverted()
+ {
+ return $this->numberOfVisitsConverted;
+ }
+
+ /**
+ * Caches multiple numeric records in the archive for this processor's site, period
+ * and segment.
+ *
+ * @param array $numericRecords A name-value mapping of numeric values that should be
+ * archived, eg,
+ * ```
+ * array('Referrers_distinctKeywords' => 23, 'Referrers_distinctCampaigns' => 234)
+ * ```
+ * @api
+ */
+ public function insertNumericRecords($numericRecords)
+ {
+ foreach ($numericRecords as $name => $value) {
+ $this->insertNumericRecord($name, $value);
+ }
+ }
+
+ /**
+ * Caches a single numeric record in the archive for this processor's site, period and
+ * segment.
+ *
+ * Numeric values are not inserted if they equal 0.
+ *
+ * @param string $name The name of the numeric value, eg, `'Referrers_distinctKeywords'`.
+ * @param float $value The numeric value.
+ * @api
+ */
+ public function insertNumericRecord($name, $value)
+ {
+ $value = round($value, 2);
+ $this->archiveWriter->insertRecord($name, $value);
+ }
+
+ /**
+ * Caches one or more blob records in the archive for this processor's site, period
+ * and segment.
+ *
+ * @param string $name The name of the record, eg, 'Referrers_type'.
+ * @param string|array $values A blob string or an array of blob strings. If an array
+ * is used, the first element in the array will be inserted
+ * with the `$name` name. The others will be inserted with
+ * `$name . '_' . $index` as the record name (where $index is
+ * the index of the blob record in `$values`).
+ * @api
+ */
+ public function insertBlobRecord($name, $values)
+ {
+ $this->archiveWriter->insertBlobRecord($name, $values);
+ }
+
/**
* This method selects all DataTables that have the name $name over the period.
* All these DataTables are then added together, and the resulting DataTable is returned.