1
0

Setting.php 937 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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\ActivitySettings;
  8. use OCP\IL10N;
  9. class Setting extends ActivitySettings {
  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 getGroupIdentifier() {
  21. return 'files';
  22. }
  23. public function getGroupName() {
  24. return $this->l->t('Files');
  25. }
  26. public function getPriority(): int {
  27. return 50;
  28. }
  29. public function canChangeStream(): bool {
  30. return true;
  31. }
  32. public function isDefaultEnabledStream(): bool {
  33. return true;
  34. }
  35. public function canChangeMail(): bool {
  36. return true;
  37. }
  38. public function isDefaultEnabledMail(): bool {
  39. return false;
  40. }
  41. }