blob: 400c313db4c275f10b111142446f1f7df7a11166 (
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
/**
* 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\UserCountry\Columns;
use Piwik\Piwik;
use Piwik\Plugin\VisitDimension;
use Piwik\Plugins\UserCountry\Segment;
class City extends VisitDimension
{
protected $fieldName = 'location_city';
protected function init()
{
$segment = new Segment();
$segment->setSegment('city');
$segment->setName('UserCountry_City');
$segment->setAcceptValues('Sydney, Sao Paolo, Rome, etc.');
$this->addSegment($segment);
}
public function getName()
{
return Piwik::translate('UserCountry_City');
}
}
|