示例#1
0
 /**
  * Deletes the calendar. 
  * 
  * @return void
  */
 public function delete()
 {
     if (!$this->hasPrivilege()) {
         throw new Sabre_DAV_Exception_Forbidden('Permission denied to access this calendar');
     }
     $this->caldavBackend->deleteCalendar($this->calendarInfo['id']);
 }
示例#2
0
 /**
  * Creates a new calendar
  * 
  * @param string $name 
  * @param string $properties 
  * @return void
  */
 public function createExtendedCollection($name, array $resourceType, array $properties)
 {
     if (!in_array('{urn:ietf:params:xml:ns:caldav}calendar', $resourceType) || count($resourceType) !== 2) {
         throw new Sabre_DAV_Exception_InvalidResourceType('Unknown resourceType for this collection');
     }
     $this->caldavBackend->createCalendar($this->userUri, $name, $properties);
 }
示例#3
0
 /**
  * Deletes the calendar.
  *
  * @return void
  */
 public function delete()
 {
     $this->caldavBackend->deleteCalendar($this->calendarInfo['id']);
 }
示例#4
0
 /**
  * Performs a calendar-query on the contents of this calendar.
  *
  * The calendar-query is defined in RFC4791 : CalDAV. Using the
  * calendar-query it is possible for a client to request a specific set of
  * object, based on contents of iCalendar properties, date-ranges and
  * iCalendar component types (VTODO, VEVENT).
  *
  * This method should just return a list of (relative) urls that match this
  * query.
  *
  * The list of filters are specified as an array. The exact array is
  * documented by Sabre_CalDAV_CalendarQueryParser.
  *
  * @param array $filters
  * @return array
  */
 public function calendarQuery(array $filters)
 {
     return $this->caldavBackend->calendarQuery($this->calendarInfo['id'], $filters);
 }