blob: 43aea4b7662528e0369a3496e9252da87eac9f42 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
|
<?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\Insights\Visualizations\Insight;
use Piwik\Plugins\Insights\InsightReport;
use Piwik\Plugins\Insights\Visualizations\Insight;
use Piwik\ViewDataTable\RequestConfig as VisualizationRequestConfig;
class RequestConfig extends VisualizationRequestConfig
{
public $min_impact_percent = '0.1';
public $min_growth_percent = 20;
public $compared_to_x_periods_ago = 1;
public $order_by = InsightReport::ORDER_BY_ABSOLUTE;
public $filter_by = '';
public $limit_increaser = '5';
public $limit_decreaser = '5';
public function __construct()
{
$this->disable_generic_filters = true;
$this->disable_queued_filters = true;
$properties = array(
'min_growth_percent',
'order_by',
'compared_to_x_periods_ago',
'filter_by',
'limit_increaser',
'limit_decreaser',
'filter_limit'
);
$this->addPropertiesThatShouldBeAvailableClientSide($properties);
$this->addPropertiesThatCanBeOverwrittenByQueryParams($properties);
}
}
|