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.6KB

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