Beispiel #1
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('visitLocalHour');
     $segment->setName('VisitTime_ColumnLocalTime');
     $segment->setSqlSegment('HOUR(log_visit.visitor_localtime)');
     $segment->setAcceptedValues('0, 1, 2, 3, ..., 20, 21, 22, 23');
     $this->addSegment($segment);
 }
Beispiel #2
0
 protected function configureSegments()
 {
     $segment = new Segment();
     $segment->setSegment('visitServerHour');
     $segment->setName('VisitTime_ColumnServerTime');
     $segment->setSqlSegment('HOUR(log_visit.visit_last_action_time)');
     $segment->setAcceptedValues('0, 1, 2, 3, ..., 20, 21, 22, 23');
     $this->addSegment($segment);
 }