1
0

ICalendarProvider.php 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * @copyright 2021 Anna Larch <anna.larch@gmx.net>
  5. *
  6. * @author Anna Larch <anna.larch@gmx.net>
  7. *
  8. * @license GNU AGPL version 3 or any later version
  9. *
  10. *
  11. *
  12. * This program is free software: you can redistribute it and/or modify
  13. * it under the terms of the GNU Affero General Public License as
  14. * published by the Free Software Foundation, either version 3 of the
  15. * License, or (at your option) any later version.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU Affero General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Affero General Public License
  23. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  24. *
  25. */
  26. namespace OCP\Calendar;
  27. /**
  28. * This interface defines a lazy loading mechanism for
  29. * calendars for Public Consumption
  30. *
  31. * @since 23.0.0
  32. */
  33. interface ICalendarProvider {
  34. /**
  35. * @param string $principalUri URI of the principal
  36. * @param string[] $calendarUris optionally specify which calendars to load, or all if this array is empty
  37. * @return ICalendar[]
  38. * @since 23.0.0
  39. */
  40. public function getCalendars(string $principalUri, array $calendarUris = []): array;
  41. }