You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

Constants.php 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Bjoern Schiessle <bjoern@schiessle.org>
  6. * @author Björn Schießle <bjoern@schiessle.org>
  7. * @author Christopher Schäpers <kondou@ts.unde.re>
  8. * @author Lukas Reschke <lukas@statuscode.ch>
  9. * @author Maxence Lange <maxence@nextcloud.com>
  10. * @author Morris Jobke <hey@morrisjobke.de>
  11. *
  12. * @license AGPL-3.0
  13. *
  14. * This code is free software: you can redistribute it and/or modify
  15. * it under the terms of the GNU Affero General Public License, version 3,
  16. * as published by the Free Software Foundation.
  17. *
  18. * This program is distributed in the hope that it will be useful,
  19. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  20. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  21. * GNU Affero General Public License for more details.
  22. *
  23. * You should have received a copy of the GNU Affero General Public License, version 3,
  24. * along with this program. If not, see <http://www.gnu.org/licenses/>
  25. *
  26. */
  27. namespace OC\Share;
  28. class Constants {
  29. const SHARE_TYPE_USER = 0;
  30. const SHARE_TYPE_GROUP = 1;
  31. const SHARE_TYPE_LINK = 3;
  32. const SHARE_TYPE_EMAIL = 4;
  33. const SHARE_TYPE_CONTACT = 5; // ToDo Check if it is still in use otherwise remove it
  34. const SHARE_TYPE_REMOTE = 6;
  35. const SHARE_TYPE_CIRCLE = 7;
  36. const SHARE_TYPE_GUEST = 8;
  37. const FORMAT_NONE = -1;
  38. const FORMAT_STATUSES = -2;
  39. const FORMAT_SOURCES = -3; // ToDo Check if it is still in use otherwise remove it
  40. const RESPONSE_FORMAT = 'json'; // default resonse format for ocs calls
  41. const TOKEN_LENGTH = 15; // old (oc7) length is 32, keep token length in db at least that for compatibility
  42. protected static $shareTypeUserAndGroups = -1;
  43. protected static $shareTypeGroupUserUnique = 2;
  44. protected static $backends = array();
  45. protected static $backendTypes = array();
  46. protected static $isResharingAllowed;
  47. }