diff options
Diffstat (limited to 'plugins/Events/Columns/TotalEvents.php')
-rw-r--r-- | plugins/Events/Columns/TotalEvents.php | 21 |
1 files changed, 4 insertions, 17 deletions
diff --git a/plugins/Events/Columns/TotalEvents.php b/plugins/Events/Columns/TotalEvents.php index 410144e3a9..f96392c194 100644 --- a/plugins/Events/Columns/TotalEvents.php +++ b/plugins/Events/Columns/TotalEvents.php @@ -8,9 +8,7 @@ */ namespace Piwik\Plugins\Events\Columns; -use Piwik\Piwik; use Piwik\Plugin\Dimension\VisitDimension; -use Piwik\Plugin\Segment; use Piwik\Tracker\Action; use Piwik\Tracker\Request; use Piwik\Tracker\Visitor; @@ -19,22 +17,11 @@ class TotalEvents extends VisitDimension { protected $columnName = 'visit_total_events'; protected $columnType = 'INT(11) UNSIGNED NULL'; + protected $segmentName = 'events'; + protected $nameSingular = 'Events_TotalEvents'; + protected $acceptValues = 'To select all visits who triggered an Event, use: &segment=events>0'; - protected function configureSegments() - { - $segment = new Segment(); - $segment->setSegment('events'); - $segment->setName('Events_TotalEvents'); - $segment->setAcceptedValues('To select all visits who triggered an Event, use: &segment=events>0'); - $segment->setCategory('General_Visit'); - $segment->setType(Segment::TYPE_METRIC); - $this->addSegment($segment); - } - - public function getName() - { - return Piwik::translate('Events_EventName'); - } + protected $type = self::TYPE_NUMBER; /** * @param Request $request |