Example #1
0
 /**
  * @return array
  */
 public function AjaxCalendarUpdate()
 {
     $mResult = false;
     $oAccount = $this->getDefaultAccountFromParam();
     if (!$this->oApiCapability->isCalendarSupported($oAccount)) {
         throw new \ProjectCore\Exceptions\ClientException(\ProjectCore\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);
 }