Shared.php 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016 Joas Schilling <coding@schilljs.com>
  4. *
  5. * @author Joas Schilling <coding@schilljs.com>
  6. * @author Morris Jobke <hey@morrisjobke.de>
  7. * @author Robin Appelman <robin@icewind.nl>
  8. *
  9. * @license GNU AGPL version 3 or any later version
  10. *
  11. * This program is free software: you can redistribute it and/or modify
  12. * it under the terms of the GNU Affero General Public License as
  13. * published by the Free Software Foundation, either version 3 of the
  14. * License, or (at your option) any later version.
  15. *
  16. * This program is distributed in the hope that it will be useful,
  17. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  18. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  19. * GNU Affero General Public License for more details.
  20. *
  21. * You should have received a copy of the GNU Affero General Public License
  22. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  23. *
  24. */
  25. namespace OCA\Files_Sharing\Activity\Settings;
  26. class Shared extends ShareActivitySettings {
  27. /**
  28. * @return string Lowercase a-z and underscore only identifier
  29. * @since 11.0.0
  30. */
  31. public function getIdentifier() {
  32. return 'shared';
  33. }
  34. /**
  35. * @return string A translated string
  36. * @since 11.0.0
  37. */
  38. public function getName() {
  39. return $this->l->t('A file or folder has been <strong>shared</strong>');
  40. }
  41. /**
  42. * @return int whether the filter should be rather on the top or bottom of
  43. * the admin section. The filters are arranged in ascending order of the
  44. * priority values. It is required to return a value between 0 and 100.
  45. * @since 11.0.0
  46. */
  47. public function getPriority() {
  48. return 10;
  49. }
  50. /**
  51. * @return bool True when the option can be changed for the stream
  52. * @since 11.0.0
  53. */
  54. public function canChangeStream() {
  55. return true;
  56. }
  57. /**
  58. * @return bool True when the option can be changed for the stream
  59. * @since 11.0.0
  60. */
  61. public function isDefaultEnabledStream() {
  62. return true;
  63. }
  64. /**
  65. * @return bool True when the option can be changed for the mail
  66. * @since 11.0.0
  67. */
  68. public function canChangeMail() {
  69. return true;
  70. }
  71. /**
  72. * @return bool True when the option can be changed for the stream
  73. * @since 11.0.0
  74. */
  75. public function isDefaultEnabledMail() {
  76. return false;
  77. }
  78. }