Beispiel #1
0
 /**
  * @return array
  */
 public function AjaxCalendarPublicUpdate()
 {
     $mResult = false;
     $oAccount = $this->getDefaultAccountFromParam();
     $sCalendarId = $this->getParamValue('Id');
     $bIsPublic = (bool) $this->getParamValue('IsPublic');
     if (!$this->oApiCapability->IsCalendarSupported($oAccount)) {
         throw new \ProjectSeven\Exceptions\ClientException(\ProjectSeven\Notifications::CalendarsNotAllowed);
     }
     $mResult = $this->oApiCalendar->PublicCalendar($oAccount, $sCalendarId, $bIsPublic);
     return $this->DefaultResponse($oAccount, __FUNCTION__, $mResult);
 }