blob: 2aa2c89fc52dd89589adb184ac7e83ca67a320dd (
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
46
47
|
<?php
/**
* Piwik - free/libre analytics platform
*
* @link http://piwik.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\VisitTime\Reports;
use Piwik\Piwik;
use Piwik\Plugin\ViewDataTable;
use Piwik\Plugins\CoreHome\Columns\VisitLastActionTime;
use Piwik\Plugins\CoreVisualizations\Visualizations\Graph;
class GetVisitInformationPerServerTime extends Base
{
protected $defaultSortColumn = '';
protected function init()
{
parent::init();
$this->dimension = new VisitLastActionTime();
$this->name = Piwik::translate('VisitTime_ServerTime');
$this->documentation = Piwik::translate('VisitTime_WidgetServerTimeDocumentation', array('<strong>', '</strong>'));
$this->constantRowsCount = true;
$this->hasGoalMetrics = true;
$this->order = 20;
$this->subcategoryId = 'VisitTime_SubmenuTimes';
}
public function configureView(ViewDataTable $view)
{
$this->setBasicConfigViewProperties($view);
$view->requestConfig->filter_limit = 24;
$view->requestConfig->request_parameters_to_modify['hideFutureHoursWhenToday'] = 1;
$view->config->addTranslation('label', Piwik::translate('VisitTime_ColumnServerHour'));
if ($view->isViewDataTableId(Graph::ID)) {
$view->config->max_graph_elements = false;
}
}
}
|