Setting.php 793 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2016 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\Comments\Activity;
  7. use OCP\Activity\ISetting;
  8. use OCP\IL10N;
  9. class Setting implements ISetting {
  10. public function __construct(
  11. protected IL10N $l,
  12. ) {
  13. }
  14. public function getIdentifier(): string {
  15. return 'comments';
  16. }
  17. public function getName(): string {
  18. return $this->l->t('<strong>Comments</strong> for files');
  19. }
  20. public function getPriority(): int {
  21. return 50;
  22. }
  23. public function canChangeStream(): bool {
  24. return true;
  25. }
  26. public function isDefaultEnabledStream(): bool {
  27. return true;
  28. }
  29. public function canChangeMail(): bool {
  30. return true;
  31. }
  32. public function isDefaultEnabledMail(): bool {
  33. return false;
  34. }
  35. }