fix labels and text editors for Quest creation
This commit is contained in:
commit
476c18b6a9
4278 changed files with 1196345 additions and 0 deletions
29
www/analytics/plugins/Provider/Archiver.php
Normal file
29
www/analytics/plugins/Provider/Archiver.php
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
<?php
|
||||
/**
|
||||
* Piwik - Open source web analytics
|
||||
*
|
||||
* @link http://piwik.org
|
||||
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
|
||||
*
|
||||
*/
|
||||
namespace Piwik\Plugins\Provider;
|
||||
|
||||
use Piwik\Metrics;
|
||||
|
||||
class Archiver extends \Piwik\Plugin\Archiver
|
||||
{
|
||||
const PROVIDER_RECORD_NAME = 'Provider_hostnameExt';
|
||||
const PROVIDER_FIELD = "location_provider";
|
||||
|
||||
public function aggregateDayReport()
|
||||
{
|
||||
$metrics = $this->getLogAggregator()->getMetricsFromVisitByDimension(self::PROVIDER_FIELD)->asDataTable();
|
||||
$report = $metrics->getSerialized($this->maximumRows, null, Metrics::INDEX_NB_VISITS);
|
||||
$this->getProcessor()->insertBlobRecord(self::PROVIDER_RECORD_NAME, $report);
|
||||
}
|
||||
|
||||
public function aggregateMultipleReports()
|
||||
{
|
||||
$this->getProcessor()->aggregateDataTableRecords(array(self::PROVIDER_RECORD_NAME), $this->maximumRows);
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue