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