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