public function PageLoad() { $invitationAction = $this->page->GetInvitationAction(); if (!empty($invitationAction)) { $resultString = $this->HandleInvitationAction($invitationAction); if ($this->page->GetResponseType() == 'json') { $this->page->DisplayResult($resultString); return; } $this->page->SetResult($resultString); } $startDate = Date::Now(); $endDate = $startDate->AddDays(30); $user = ServiceLocator::GetServer()->GetUserSession(); $userId = $user->UserId; $reservations = $this->reservationViewRepository->GetReservationList($startDate, $endDate, $userId, ReservationUserLevel::INVITEE); $this->page->SetTimezone($user->Timezone); $this->page->BindReservations($reservations); $this->page->DisplayParticipation(); }