/** * @return array */ public function AjaxCalendarEventAppointmentUpdate() { $oAccount = $this->getDefaultAccountFromParam(); if (!$this->oApiCapability->isCalendarSupported($oAccount)) { throw new \ProjectCore\Exceptions\ClientException(\ProjectCore\Notifications::CalendarsNotAllowed); } $sCalendarId = $this->getParamValue('calendarId'); $sEventId = $this->getParamValue('uid'); $sAttendee = $this->getParamValue('attendee'); $iAction = (int) $this->getParamValue('actionAppointment'); $sAction = ''; if ($iAction === \EAttendeeStatus::Accepted) { $sAction = 'ACCEPTED'; } else { if ($iAction === \EAttendeeStatus::Declined) { $sAction = 'DECLINED'; } else { if ($iAction === \EAttendeeStatus::Tentative) { $sAction = 'TENTATIVE'; } } } $mResult = $this->oApiCalendar->updateAppointment($oAccount, $sCalendarId, $sEventId, $sAttendee, $sAction); return $this->DefaultResponse($oAccount, __FUNCTION__, $mResult); }