SecuritySetting.php 780 B

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  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\Settings\Activity;
  7. use OCP\Activity\ISetting;
  8. use OCP\IL10N;
  9. class SecuritySetting implements ISetting {
  10. /** @var IL10N */
  11. private $l10n;
  12. public function __construct(IL10N $l10n) {
  13. $this->l10n = $l10n;
  14. }
  15. public function canChangeMail() {
  16. return false;
  17. }
  18. public function canChangeStream() {
  19. return false;
  20. }
  21. public function getIdentifier() {
  22. return 'security';
  23. }
  24. public function getName() {
  25. return $this->l10n->t('Security');
  26. }
  27. public function getPriority() {
  28. return 30;
  29. }
  30. public function isDefaultEnabledMail() {
  31. return true;
  32. }
  33. public function isDefaultEnabledStream() {
  34. return true;
  35. }
  36. }