diff options
Diffstat (limited to 'lib/public/Calendar/IManager.php')
-rw-r--r-- | lib/public/Calendar/IManager.php | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/lib/public/Calendar/IManager.php b/lib/public/Calendar/IManager.php index eb4113bba99..7f0eec80910 100644 --- a/lib/public/Calendar/IManager.php +++ b/lib/public/Calendar/IManager.php @@ -118,7 +118,7 @@ interface IManager { /** * @return ICalendar[] * @since 13.0.0 - * @deprecated 23.0.0 + * @deprecated 23.0.0 use \OCP\Calendar\IManager::getCalendarsForPrincipal */ public function getCalendars(); @@ -132,6 +132,15 @@ interface IManager { public function clear(); /** + * @param string $principalUri URI of the principal + * @param string[] $calendarUris optionally specify which calendars to load, or all if this array is empty + * + * @return ICalendar[] + * @since 23.0.0 + */ + public function getCalendarsForPrincipal(string $principalUri, array $calendarUris = []): array; + + /** * Query a principals calendar(s) * * @param ICalendarQuery $query |