Browse Source

Merge pull request #34378 from nextcloud/add-isDeleted-to-icalendar

Add isDeleted to OCP\Calendar\ICalendar
tags/v26.0.0beta1
blizzz 1 year ago
parent
commit
23df942454
No account linked to committer's email address
2 changed files with 13 additions and 0 deletions
  1. 7
    0
      apps/dav/lib/CalDAV/CalendarImpl.php
  2. 6
    0
      lib/public/Calendar/ICalendar.php

+ 7
- 0
apps/dav/lib/CalDAV/CalendarImpl.php View File

@@ -130,6 +130,13 @@ class CalendarImpl implements ICreateFromString {
return $result;
}

/**
* @since 26.0.0
*/
public function isDeleted(): bool {
return $this->calendar->isDeleted();
}

/**
* Create a new calendar event for this calendar
* by way of an ICS string

+ 6
- 0
lib/public/Calendar/ICalendar.php View File

@@ -75,4 +75,10 @@ interface ICalendar {
* @since 13.0.0
*/
public function getPermissions(): int;

/**
* Whether the calendar is deleted
* @since 26.0.0
*/
public function isDeleted(): bool;
}

Loading…
Cancel
Save