From 16fb4919ef3d3674663d5cbc69b69097b861b95d Mon Sep 17 00:00:00 2001 From: mattab Date: Tue, 5 Nov 2013 23:10:45 +1300 Subject: Refs #4278 Cleanup these Parameters objects --- core/ArchiveProcessor.php | 122 +++++++++++++++++++++++----------------------- 1 file changed, 61 insertions(+), 61 deletions(-) (limited to 'core/ArchiveProcessor.php') diff --git a/core/ArchiveProcessor.php b/core/ArchiveProcessor.php index e133ac7bbb..7587f7d4e6 100644 --- a/core/ArchiveProcessor.php +++ b/core/ArchiveProcessor.php @@ -137,67 +137,6 @@ class ArchiveProcessor return $this->logAggregator; } - /** - * 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. @@ -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. -- cgit v1.2.3