diff options
Diffstat (limited to 'plugins/UserCountry/Columns/Latitude.php')
-rw-r--r-- | plugins/UserCountry/Columns/Latitude.php | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/plugins/UserCountry/Columns/Latitude.php b/plugins/UserCountry/Columns/Latitude.php index 4cb29bf719..462b4812a1 100644 --- a/plugins/UserCountry/Columns/Latitude.php +++ b/plugins/UserCountry/Columns/Latitude.php @@ -8,9 +8,7 @@ */ namespace Piwik\Plugins\UserCountry\Columns; -use Piwik\Piwik; use Piwik\Plugins\UserCountry\LocationProvider; -use Piwik\Plugins\UserCountry\Segment; use Piwik\Tracker\Request; use Piwik\Tracker\Visitor; use Piwik\Tracker\Action; @@ -19,20 +17,12 @@ class Latitude extends Base { protected $columnName = 'location_latitude'; protected $columnType = 'decimal(9, 6) DEFAULT NULL'; - - protected function configureSegments() - { - $segment = new Segment(); - $segment->setSegment('latitude'); - $segment->setName('UserCountry_Latitude'); - $segment->setAcceptedValues('-33.578, 40.830, etc.<br/>You can select visitors within a lat/long range using &segment=lat>X;lat<Y;long>M;long<N.'); - $this->addSegment($segment); - } - - public function getName() - { - return Piwik::translate('UserCountry_Latitude'); - } + protected $type = self::TYPE_TEXT; + protected $category = 'UserCountry_VisitLocation'; + protected $segmentName = 'latitude'; + protected $nameSingular = 'UserCountry_Latitude'; + protected $namePlural = 'UserCountry_Latitudes'; + protected $acceptValues = '-33.578, 40.830, etc.<br/>You can select visitors within a lat/long range using &segment=lat>X;lat<Y;long>M;long<N.'; /** * @param Request $request |