FileChanged.php 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  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\Files\Activity\Settings;
  7. class FileChanged extends FileActivitySettings {
  8. /**
  9. * @return string Lowercase a-z and underscore only identifier
  10. * @since 11.0.0
  11. */
  12. public function getIdentifier() {
  13. return 'file_changed';
  14. }
  15. /**
  16. * @return string A translated string
  17. * @since 11.0.0
  18. */
  19. public function getName() {
  20. return $this->l->t('A file or folder has been <strong>changed</strong>');
  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. * @since 11.0.0
  27. */
  28. public function getPriority() {
  29. return 2;
  30. }
  31. public function canChangeMail() {
  32. return true;
  33. }
  34. public function isDefaultEnabledMail() {
  35. return false;
  36. }
  37. public function canChangeNotification() {
  38. return true;
  39. }
  40. public function isDefaultEnabledNotification() {
  41. return false;
  42. }
  43. }