blob: c3774deebc72dcb68e186525a5aa2a92e7ce9a40 (
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
|
<?php
/**
* Matomo - free/libre analytics platform
*
* @link https://matomo.org
* @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later
*
*/
namespace Piwik\Plugins\DevicePlugins\Columns;
use Piwik\Common;
use Piwik\Tracker\Request;
use Piwik\Tracker\Visitor;
use Piwik\Tracker\Action;
class PluginRealPlayer extends DevicePluginColumn
{
protected $columnName = 'config_realplayer';
protected $columnType = 'TINYINT(1) NULL';
protected $type = self::TYPE_BOOL;
/**
* @param Request $request
* @param Visitor $visitor
* @param Action|null $action
* @return mixed
*/
public function onNewVisit(Request $request, Visitor $visitor, $action)
{
return Common::getRequestVar('realp', 0, 'int', $request->getParams());
}
}
|