1
0

Constants.php 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Joas Schilling <coding@schilljs.com>
  6. * @author Morris Jobke <hey@morrisjobke.de>
  7. * @author Roeland Jago Douma <roeland@famdouma.nl>
  8. * @author Thomas Tanghus <thomas@tanghus.net>
  9. * @author Vincent Petry <pvince81@owncloud.com>
  10. *
  11. * @license AGPL-3.0
  12. *
  13. * This code is free software: you can redistribute it and/or modify
  14. * it under the terms of the GNU Affero General Public License, version 3,
  15. * as published by the Free Software Foundation.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU Affero General Public License for more details.
  21. *
  22. * You should have received a copy of the GNU Affero General Public License, version 3,
  23. * along with this program. If not, see <http://www.gnu.org/licenses/>
  24. *
  25. */
  26. /**
  27. * This file defines common constants used in ownCloud
  28. */
  29. namespace OCP;
  30. /**
  31. * Class Constants
  32. *
  33. * @package OCP
  34. * @since 8.0.0
  35. */
  36. class Constants {
  37. /**
  38. * CRUDS permissions.
  39. * @since 8.0.0
  40. */
  41. const PERMISSION_CREATE = 4;
  42. const PERMISSION_READ = 1;
  43. const PERMISSION_UPDATE = 2;
  44. const PERMISSION_DELETE = 8;
  45. const PERMISSION_SHARE = 16;
  46. 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. const FILENAME_INVALID_CHARS = "\\/";
  52. }