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

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/DevicesDetection/Columns/OsVersion.php')
-rw-r--r--plugins/DevicesDetection/Columns/OsVersion.php21
1 files changed, 5 insertions, 16 deletions
diff --git a/plugins/DevicesDetection/Columns/OsVersion.php b/plugins/DevicesDetection/Columns/OsVersion.php
index d1c3cb422a..ef7d9b6dca 100644
--- a/plugins/DevicesDetection/Columns/OsVersion.php
+++ b/plugins/DevicesDetection/Columns/OsVersion.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 OsVersion extends Base
{
protected $columnName = 'config_os_version';
protected $columnType = 'VARCHAR( 100 ) CHARACTER SET utf8 COLLATE utf8_general_ci NULL DEFAULT NULL';
-
- protected function configureSegments()
- {
- $segment = new Segment();
- $segment->setSegment('operatingSystemVersion');
- $segment->setName('DevicesDetection_ColumnOperatingSystemVersion');
- $segment->setAcceptedValues('XP, 7, 2.3, 5.1, ...');
- $this->addSegment($segment);
- }
-
- public function getName()
- {
- return Piwik::translate('DevicesDetection_OperatingSystemVersions');
- }
+ protected $nameSingular = 'DevicesDetection_ColumnOperatingSystemVersion';
+ protected $namePlural = 'DevicesDetection_OperatingSystemVersions';
+ protected $segmentName = 'operatingSystemVersion';
+ protected $acceptValues = 'XP, 7, 2.3, 5.1, ...';
+ protected $type = self::TYPE_TEXT;
/**
* @param Request $request