/** * Checks whether the registration for this event has started. * * @param tx_seminars_seminar $event the event to check the registration for * * @return bool TRUE if registration for this event already has started, FALSE otherwise */ public function registrationHasStarted(tx_seminars_seminar $event) { if (!$event->hasRegistrationBegin()) { return TRUE; } return $GLOBALS['SIM_EXEC_TIME'] >= $event->getRegistrationBeginAsUnixTimestamp(); }