Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Citharel <tcit@tcit.fr>2022-10-02 13:39:30 +0300
committerThomas Citharel <tcit@tcit.fr>2022-10-03 19:56:02 +0300
commitd084e7656be259f45207ea199e362d857f743510 (patch)
treeffa7f3d4e68f52e4cb78bd889e072c7a126bfbf7
parentf888f99b0a4f599ea403cdf337935093c5420586 (diff)
Add isDeleted property to OCP\Calendar\ICalendaradd-isDeleted-to-icalendar
Signed-off-by: Thomas Citharel <tcit@tcit.fr>
-rw-r--r--apps/dav/lib/CalDAV/CalendarImpl.php7
-rw-r--r--lib/public/Calendar/ICalendar.php6
2 files changed, 13 insertions, 0 deletions
diff --git a/apps/dav/lib/CalDAV/CalendarImpl.php b/apps/dav/lib/CalDAV/CalendarImpl.php
index 4eef1e7f8d3..53cde5a7b75 100644
--- a/apps/dav/lib/CalDAV/CalendarImpl.php
+++ b/apps/dav/lib/CalDAV/CalendarImpl.php
@@ -131,6 +131,13 @@ class CalendarImpl implements ICreateFromString {
}
/**
+ * @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
*
diff --git a/lib/public/Calendar/ICalendar.php b/lib/public/Calendar/ICalendar.php
index f1f2d5eb6f1..e1644ca82aa 100644
--- a/lib/public/Calendar/ICalendar.php
+++ b/lib/public/Calendar/ICalendar.php
@@ -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;
}