/**
  * Checks whether the given event allows registration, as far as its date is concerned.
  *
  * @param tx_seminars_seminar $event the event to check the registration for
  *
  * @return bool TRUE if the event allows registration by date, FALSE otherwise
  */
 public function allowsRegistrationByDate(tx_seminars_seminar $event)
 {
     if ($event->hasDate()) {
         $result = !$event->isRegistrationDeadlineOver();
     } else {
         $result = $event->getConfValueBoolean('allowRegistrationForEventsWithoutDate');
     }
     return $result && $this->registrationHasStarted($event);
 }