/** * Returns FALSE, if the user can join the event right away * Return TRUE, if the user has to wait a certain amount of days in order to sign up for the event * Also returns TRUE if the user has no access to this event's topic, or if no user or event with such ID exist * * @param int $userID * @param int $eventID * @return boolean */ public static function hasToWait($userID, $eventID) { $event = EventDatabaseManager::getEvent($eventID); return EventDatabaseManager::daysTillAbleToJoin($userID, $event->getTopicID()) > 0; }