/** * action list * * @return void */ public function listAction() { $calendar = $this->calendarRepository->findByUid($this->settings['calendar']); if ($calendar === NULL) { $calendar = $this->calendarRepository->findByPrimaryCal(TRUE)->getFirst(); } $this->eventRepository->setCalendar($calendar); if ($this->eventRepository->eventsExpired()) { $this->eventRepository->loadEvents(0, \date_create('now')); } $this->settings['calendarSettings']['visibility'] = 'public'; $events = $this->eventRepository->findByCalendar($calendar, $this->settings['calendarSettings']); $this->view->assign('events', $events); }
/** * Loads the calendars */ public function loadCalendarsAction() { $this->calendarRepository->loadCalendars(); $this->forward('authenticate'); }
/** * action list * * @return void */ public function listAction() { $calendars = $this->calendarRepository->findAll(); $this->view->assign('calendars', $calendars); }