PublicLinksUpload.php 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566
  1. <?php
  2. /**
  3. * SPDX-FileCopyrightText: 2024 Nextcloud GmbH and Nextcloud contributors
  4. * SPDX-License-Identifier: AGPL-3.0-or-later
  5. */
  6. namespace OCA\Files_Sharing\Activity\Settings;
  7. class PublicLinksUpload extends ShareActivitySettings {
  8. /**
  9. * @return string Lowercase a-z and underscore only identifier
  10. * @since 11.0.0
  11. */
  12. public function getIdentifier() {
  13. return 'public_links_upload';
  14. }
  15. /**
  16. * @return string A translated string
  17. * @since 11.0.0
  18. */
  19. public function getName() {
  20. return $this->l->t('Files have been <strong>uploaded</strong> to a folder shared by mail or by public link');
  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 20;
  30. }
  31. /**
  32. * @return bool True when the option can be changed for the stream
  33. * @since 11.0.0
  34. */
  35. public function canChangeStream() {
  36. return true;
  37. }
  38. /**
  39. * @return bool True when the option can be changed for the stream
  40. * @since 11.0.0
  41. */
  42. public function isDefaultEnabledStream() {
  43. return true;
  44. }
  45. /**
  46. * @return bool True when the option can be changed for the mail
  47. * @since 11.0.0
  48. */
  49. public function canChangeMail() {
  50. return true;
  51. }
  52. /**
  53. * @return bool True when the option can be changed for the stream
  54. * @since 11.0.0
  55. */
  56. public function isDefaultEnabledMail() {
  57. return false;
  58. }
  59. }