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

Add isDeleted to OCP\Calendar\ICalendar
pull/34298/head
blizzz 2022-10-04 15:37:56 +07: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

@ -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

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