Welcome to mirror list, hosted at ThFree Co, Russian Federation.

Servertime.php « Columns « VisitTime « plugins - github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 3d48f0f48b329f47a475613e5ceb7c6d4d2198a4 (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
<?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\VisitTime\Columns;

use Piwik\Piwik;
use Piwik\Plugin\VisitDimension;
use Piwik\Plugin\Segment;

class Servertime extends VisitDimension
{    
    protected $fieldName = 'HOUR(visit_last_action_time)';

    protected function init()
    {
        $segment = new Segment();
        $segment->setSegment('visitServerHour');
        $segment->setName('Server time');
        $this->addSegment($segment);
    }

    public function getName()
    {
        return Piwik::translate('VisitTime_ColumnServerTime');
    }
}