1
0

Constants.php 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  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_USERGROUP = 2; // Internal type used by DefaultShareProvider
  32. const SHARE_TYPE_LINK = 3;
  33. const SHARE_TYPE_EMAIL = 4;
  34. const SHARE_TYPE_CONTACT = 5; // ToDo Check if it is still in use otherwise remove it
  35. const SHARE_TYPE_REMOTE = 6;
  36. const SHARE_TYPE_CIRCLE = 7;
  37. const SHARE_TYPE_GUEST = 8;
  38. const SHARE_TYPE_REMOTE_GROUP = 9;
  39. const SHARE_TYPE_ROOM = 10;
  40. // const SHARE_TYPE_USERROOM = 11; // Internal type used by RoomShareProvider
  41. const FORMAT_NONE = -1;
  42. const FORMAT_STATUSES = -2;
  43. const FORMAT_SOURCES = -3; // ToDo Check if it is still in use otherwise remove it
  44. const RESPONSE_FORMAT = 'json'; // default resonse format for ocs calls
  45. const TOKEN_LENGTH = 15; // old (oc7) length is 32, keep token length in db at least that for compatibility
  46. protected static $shareTypeUserAndGroups = -1;
  47. protected static $shareTypeGroupUserUnique = 2;
  48. protected static $backends = array();
  49. protected static $backendTypes = array();
  50. protected static $isResharingAllowed;
  51. }