/** * @return array */ public function AjaxCalendarUpdate() { $mResult = false; $oAccount = $this->getDefaultAccountFromParam(); if (!$this->oApiCapability->IsCalendarSupported($oAccount)) { throw new \ProjectSeven\Exceptions\ClientException(\ProjectSeven\Notifications::CalendarsNotAllowed); } $sName = $this->getParamValue('Name'); $sDescription = $this->getParamValue('Description'); $sColor = $this->getParamValue('Color'); $sId = $this->getParamValue('Id'); $mResult = $this->oApiCalendar->UpdateCalendar($oAccount, $sId, $sName, $sDescription, 0, $sColor); return $this->DefaultResponse($oAccount, __FUNCTION__, $mResult); }