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

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Arthur Schiwon <blizzz@arthur-schiwon.de>
  6. * @author Christoph Wurst <christoph@winzerhof-wurst.at>
  7. * @author Joas Schilling <coding@schilljs.com>
  8. * @author Morris Jobke <hey@morrisjobke.de>
  9. * @author Roeland Jago Douma <roeland@famdouma.nl>
  10. * @author Thomas Tanghus <thomas@tanghus.net>
  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. /**
  28. * This file defines common constants used in ownCloud
  29. */
  30. namespace OCP;
  31. /**
  32. * Class Constants
  33. *
  34. * @since 8.0.0
  35. */
  36. class Constants {
  37. /**
  38. * CRUDS permissions.
  39. * @since 8.0.0
  40. */
  41. public const PERMISSION_CREATE = 4;
  42. public const PERMISSION_READ = 1;
  43. public const PERMISSION_UPDATE = 2;
  44. public const PERMISSION_DELETE = 8;
  45. public const PERMISSION_SHARE = 16;
  46. public const PERMISSION_ALL = 31;
  47. /**
  48. * @since 8.0.0 - Updated in 9.0.0 to allow all POSIX chars since we no
  49. * longer support windows as server platform.
  50. */
  51. public const FILENAME_INVALID_CHARS = "\\/";
  52. /**
  53. * @since 21.0.0 – default value for autocomplete/search results limit,
  54. * cf. sharing.maxAutocompleteResults in config.sample.php.
  55. */
  56. public const SHARING_MAX_AUTOCOMPLETE_RESULTS_DEFAULT = 25;
  57. }