Add isDeleted property to OCP\Calendar\ICalendar

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2022-10-02 12:39:30 +02:00
parent f888f99b0a
commit d084e7656b
No known key found for this signature in database
GPG Key ID: A061B9DDE0CA0773
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;
}