diff options
Diffstat (limited to 'plugins/DevicesDetection/Columns/BrowserVersion.php')
-rw-r--r-- | plugins/DevicesDetection/Columns/BrowserVersion.php | 21 |
1 files changed, 5 insertions, 16 deletions
diff --git a/plugins/DevicesDetection/Columns/BrowserVersion.php b/plugins/DevicesDetection/Columns/BrowserVersion.php index aabca4e9fb..9fd4593aac 100644 --- a/plugins/DevicesDetection/Columns/BrowserVersion.php +++ b/plugins/DevicesDetection/Columns/BrowserVersion.php @@ -8,8 +8,6 @@ */ namespace Piwik\Plugins\DevicesDetection\Columns; -use Piwik\Piwik; -use Piwik\Plugins\DevicesDetection\Segment; use Piwik\Tracker\Request; use Piwik\Tracker\Visitor; use Piwik\Tracker\Action; @@ -18,20 +16,11 @@ class BrowserVersion extends Base { protected $columnName = 'config_browser_version'; protected $columnType = 'VARCHAR(20) NULL'; - - protected function configureSegments() - { - $segment = new Segment(); - $segment->setSegment('browserVersion'); - $segment->setName('DevicesDetection_BrowserVersion'); - $segment->setAcceptedValues('1.0, 8.0, etc.'); - $this->addSegment($segment); - } - - public function getName() - { - return Piwik::translate('DevicesDetection_BrowserVersion'); - } + protected $segmentName = 'browserVersion'; + protected $nameSingular = 'DevicesDetection_BrowserVersion'; + protected $namePlural = 'DevicesDetection_BrowserVersions'; + protected $acceptValues = '1.0, 8.0, etc.'; + protected $type = self::TYPE_TEXT; /** * @param Request $request |