1
0

Setting.php 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?php
  2. declare(strict_types=1);
  3. /**
  4. * SPDX-FileCopyrightText: 2021 Nextcloud GmbH and Nextcloud contributors
  5. * SPDX-License-Identifier: AGPL-3.0-or-later
  6. */
  7. namespace OCA\DAV\CardDAV\Activity;
  8. use OCA\DAV\CalDAV\Activity\Setting\CalDAVSetting;
  9. class Setting extends CalDAVSetting {
  10. /**
  11. * @return string Lowercase a-z and underscore only identifier
  12. */
  13. public function getIdentifier(): string {
  14. return 'contacts';
  15. }
  16. /**
  17. * @return string A translated string
  18. */
  19. public function getName(): string {
  20. return $this->l->t('A <strong>contact</strong> or <strong>address book</strong> was modified');
  21. }
  22. /**
  23. * @return int whether the filter should be rather on the top or bottom of
  24. * the admin section. The filters are arranged in ascending order of the
  25. * priority values. It is required to return a value between 0 and 100.
  26. */
  27. public function getPriority(): int {
  28. return 50;
  29. }
  30. /**
  31. * @return bool True when the option can be changed for the stream
  32. */
  33. public function canChangeStream(): bool {
  34. return true;
  35. }
  36. /**
  37. * @return bool True when the option can be changed for the stream
  38. */
  39. public function isDefaultEnabledStream(): bool {
  40. return true;
  41. }
  42. /**
  43. * @return bool True when the option can be changed for the mail
  44. */
  45. public function canChangeMail(): bool {
  46. return true;
  47. }
  48. /**
  49. * @return bool True when the option can be changed for the stream
  50. */
  51. public function isDefaultEnabledMail(): bool {
  52. return false;
  53. }
  54. }