SecuritySetting.php 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465
  1. <?php
  2. /**
  3. * @author Christoph Wurst <christoph@winzerhof-wurst.at>
  4. * @copyright Copyright (c) 2016 Christoph Wurst <christoph@winzerhof-wurst.at>
  5. *
  6. * Two-factor backup codes
  7. *
  8. * This code is free software: you can redistribute it and/or modify
  9. * it under the terms of the GNU Affero General Public License, version 3,
  10. * as published by the Free Software Foundation.
  11. *
  12. * This program is distributed in the hope that it will be useful,
  13. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  14. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  15. * GNU Affero General Public License for more details.
  16. *
  17. * You should have received a copy of the GNU Affero General Public License, version 3,
  18. * along with this program. If not, see <http://www.gnu.org/licenses/>
  19. *
  20. */
  21. namespace OC\Settings\Activity;
  22. use OCP\Activity\ISetting;
  23. use OCP\IL10N;
  24. class SecuritySetting implements ISetting {
  25. /** @var IL10N */
  26. private $l10n;
  27. public function __construct(IL10N $l10n) {
  28. $this->l10n = $l10n;
  29. }
  30. public function canChangeMail() {
  31. return false;
  32. }
  33. public function canChangeStream() {
  34. return false;
  35. }
  36. public function getIdentifier() {
  37. return 'security';
  38. }
  39. public function getName() {
  40. return $this->l10n->t('Security');
  41. }
  42. public function getPriority() {
  43. return 30;
  44. }
  45. public function isDefaultEnabledMail() {
  46. return true;
  47. }
  48. public function isDefaultEnabledStream() {
  49. return true;
  50. }
  51. }