blob: f714989b75f6c17fda57f5928cc3f56250137fa1 (
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
48
|
<?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\Live\Reports;
use Piwik\Plugin\Report;
use Piwik\Plugins\Live\Visualizations\VisitorLog;
use Piwik\Report\ReportWidgetFactory;
use Piwik\Widget\WidgetsList;
class GetLastVisitsDetails extends Base
{
protected $defaultSortColumn = '';
protected function init()
{
parent::init();
$this->order = 2;
$this->categoryId = 'General_Visitors';
$this->subcategoryId = 'Live_VisitorLog';
}
public function getDefaultTypeViewDataTable()
{
return VisitorLog::ID;
}
public function alwaysUseDefaultViewDataTable()
{
return true;
}
public function configureWidgets(WidgetsList $widgetsList, ReportWidgetFactory $factory)
{
$widget = $factory->createWidget()
->forceViewDataTable(VisitorLog::ID)
->setName('Live_VisitorLog')
->setOrder(10)
->setParameters(array('small' => 1));
$widgetsList->addWidgetConfig($widget);
}
}
|