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

Add isDeleted to OCP\Calendar\ICalendar
This commit is contained in:
blizzz 2022-10-04 15:37:56 +02:00 committed by GitHub
commit 23df942454
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 0 deletions

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

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;
}