function atomBefore(Request $request, Application $app) { $days = isset($_GET['days']) ? $_GET['days'] : null; $atom = new EventListATOMBeforeBuilder($app['currentSite'], $app['currentTimeZone']); $atom->setDaysBefore($days); $atom->build(); return $atom->getResponse(); }
function atomBefore(Request $request, Application $app) { $days = isset($_GET['days']) ? $_GET['days'] : null; $atom = new EventListATOMBeforeBuilder($app['currentSite'], $app['currentTimeZone']); $atom->setDaysBefore($days); $atom->setTitle('Virtual'); $atom->getEventRepositoryBuilder()->setVenueVirtualOnly(true); $atom->build(); return $atom->getResponse(); }
function atomBefore($slug, Request $request, Application $app) { if (!$this->build($slug, $request, $app)) { $app->abort(404, "Venue does not exist."); } $days = isset($_GET['days']) ? $_GET['days'] : null; $atom = new EventListATOMBeforeBuilder($app['currentSite'], $app['currentTimeZone']); $atom->setDaysBefore($days); $atom->setTitle($this->parameters['venue']->getTitle()); $atom->getEventRepositoryBuilder()->setVenue($this->parameters['venue']); $atom->build(); return $atom->getResponse(); }