IManager.php 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2018 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCP\Calendar\Room;
  8. /**
  9. * @since 14.0.0
  10. * @deprecated 24.0.0
  11. */
  12. interface IManager {
  13. /**
  14. * Registers a room backend
  15. *
  16. * @param string $backendClass
  17. * @return void
  18. * @since 14.0.0
  19. * @deprecated 24.0.0 use \OC\AppFramework\Bootstrap\::registerCalendarRoomBackend
  20. */
  21. public function registerBackend(string $backendClass);
  22. /**
  23. * Unregisters a room backend
  24. *
  25. * @param string $backendClass
  26. * @return void
  27. * @since 14.0.0
  28. * @deprecated 24.0.0
  29. */
  30. public function unregisterBackend(string $backendClass);
  31. /**
  32. * @return IBackend[]
  33. * @since 14.0.0
  34. * @deprecated 24.0.0
  35. */
  36. public function getBackends():array;
  37. /**
  38. * @param string $backendId
  39. * @return IBackend|null
  40. * @since 14.0.0
  41. * @deprecated 24.0.0
  42. */
  43. public function getBackend($backendId);
  44. /**
  45. * removes all registered backend instances
  46. * @return void
  47. * @since 14.0.0
  48. * @deprecated 24.0.0
  49. */
  50. public function clear();
  51. }