__construct() public method

Constructor.
public __construct ( Piwik\ArchiveProcessor $processor )
$processor Piwik\ArchiveProcessor The ArchiveProcessor instance to use when persisting archive data.
 function __construct($processor)
 {
     parent::__construct($processor);
     $this->processor = $processor;
     $this->maximumRowsInDataTableLevelZero = Config::getInstance()->General['datatable_archiving_maximum_rows_custom_variables'];
     $this->maximumRowsInSubDataTable = Config::getInstance()->General['datatable_archiving_maximum_rows_subtable_custom_variables'];
 }
Example #2
0
 public function __construct($processor)
 {
     parent::__construct($processor);
     $this->columnToSortByBeforeTruncation = Metrics::INDEX_NB_VISITS;
     $this->maximumRowsInDataTable = ArchivingHelper::$maximumRowsInDataTableLevelZero;
     $this->maximumRowsInSubDataTable = ArchivingHelper::$maximumRowsInSubDataTable;
 }
Example #3
0
 function __construct($processor)
 {
     parent::__construct($processor);
     $this->columnToSortByBeforeTruncation = Metrics::INDEX_NB_VISITS;
     $this->maximumRowsInDataTable = Config::getInstance()->General['datatable_archiving_maximum_rows_events'];
     $this->maximumRowsInSubDataTable = Config::getInstance()->General['datatable_archiving_maximum_rows_subtable_events'];
 }
Example #4
0
 function __construct($processor)
 {
     parent::__construct($processor);
     if ($processor->getParams()->getSite()->isEcommerceEnabled()) {
         $this->maximumRowsInDataTableLevelZero = self::MAX_ROWS_WHEN_ECOMMERCE;
         $this->maximumRowsInSubDataTable = self::MAX_ROWS_WHEN_ECOMMERCE;
     } else {
         $this->maximumRowsInDataTableLevelZero = Config::getInstance()->General['datatable_archiving_maximum_rows_custom_variables'];
         $this->maximumRowsInSubDataTable = Config::getInstance()->General['datatable_archiving_maximum_rows_subtable_custom_variables'];
     }
 }
Example #5
0
 public function __construct($processor)
 {
     parent::__construct($processor);
     $this->columnToSortByBeforeTruncation = Metrics::INDEX_NB_VISITS;
     $this->maximumRowsInDataTableLevelZero = @Config::getInstance()->General['datatable_archiving_maximum_rows_referers'];
     $this->maximumRowsInSubDataTable = @Config::getInstance()->General['datatable_archiving_maximum_rows_subtable_referers'];
     if (empty($this->maximumRowsInDataTableLevelZero)) {
         $this->maximumRowsInDataTableLevelZero = Config::getInstance()->General['datatable_archiving_maximum_rows_referrers'];
         $this->maximumRowsInSubDataTable = Config::getInstance()->General['datatable_archiving_maximum_rows_subtable_referrers'];
     }
 }
Example #6
0
 function __construct($processor)
 {
     parent::__construct($processor);
     $this->isSiteSearchEnabled = $processor->getParams()->getSite()->isSiteSearchEnabled();
 }
Example #7
0
 function __construct($processor)
 {
     parent::__construct($processor);
     $this->maximumRowsInDataTableLevelZero = Config::getInstance()->General['datatable_archiving_maximum_rows_userid_users'];
 }