1
0

ISetting.php 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCP\Activity;
  7. /**
  8. * Interface ISetting
  9. *
  10. * @since 11.0.0
  11. */
  12. interface ISetting {
  13. /**
  14. * @return string Lowercase a-z and underscore only identifier
  15. * @since 11.0.0
  16. */
  17. public function getIdentifier();
  18. /**
  19. * @return string A translated string
  20. * @since 11.0.0
  21. */
  22. public function getName();
  23. /**
  24. * @return int whether the filter should be rather on the top or bottom of
  25. * the admin section. The filters are arranged in ascending order of the
  26. * priority values. It is required to return a value between 0 and 100.
  27. * @since 11.0.0
  28. */
  29. public function getPriority();
  30. /**
  31. * @return bool True when the option can be changed for the stream
  32. * @since 11.0.0
  33. */
  34. public function canChangeStream();
  35. /**
  36. * @return bool True when the option can be changed for the stream
  37. * @since 11.0.0
  38. */
  39. public function isDefaultEnabledStream();
  40. /**
  41. * @return bool True when the option can be changed for the mail
  42. * @since 11.0.0
  43. */
  44. public function canChangeMail();
  45. /**
  46. * @return bool True when the option can be changed for the stream
  47. * @since 11.0.0
  48. */
  49. public function isDefaultEnabledMail();
  50. }