Ejemplo n.º 1
0
 public function Delete($id, $siteId, $account, $arPath)
 {
     $calendarId = $this->GetCalendarId($siteId, $account, $arPath);
     if ($calendarId == null) {
         return '404 Not Found';
     }
     $request = $this->groupdav->GetRequest();
     $oldEvent = $this->GetEntry('DELETE', $id, $calendarId);
     if (!is_array($oldEvent)) {
         return $oldEvent;
     }
     CDav::Report("CDavCalendarHandler::Delete", "id", $id);
     return CEventCalendar::DeleteCalendarEvent($calendarId, $oldEvent["ID"], $request->GetPrincipal()->Id());
 }