ISharedCalendar.php 989 B

123456789101112131415161718192021222324252627282930313233343536
  1. <?php
  2. namespace Sabre\CalDAV;
  3. /**
  4. * This interface represents a Calendar that is shared by a different user.
  5. *
  6. * @copyright Copyright (C) fruux GmbH (https://fruux.com/)
  7. * @author Evert Pot (http://evertpot.com/)
  8. * @license http://sabre.io/license/ Modified BSD License
  9. */
  10. interface ISharedCalendar extends ICalendar {
  11. /**
  12. * This method should return the url of the owners' copy of the shared
  13. * calendar.
  14. *
  15. * @return string
  16. */
  17. function getSharedUrl();
  18. /**
  19. * Returns the list of people whom this calendar is shared with.
  20. *
  21. * Every element in this array should have the following properties:
  22. * * href - Often a mailto: address
  23. * * commonName - Optional, for example a first + last name
  24. * * status - See the Sabre\CalDAV\SharingPlugin::STATUS_ constants.
  25. * * readOnly - boolean
  26. * * summary - Optional, a description for the share
  27. *
  28. * @return array
  29. */
  30. function getShares();
  31. }