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 2.0KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. <?php
  2. /**
  3. * @author Joas Schilling <nickvergessen@owncloud.com>
  4. * @author Morris Jobke <hey@morrisjobke.de>
  5. * @author Thomas Tanghus <thomas@tanghus.net>
  6. * @author Vincent Petry <pvince81@owncloud.com>
  7. *
  8. * @copyright Copyright (c) 2016, ownCloud, Inc.
  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. /**
  25. * This file defines common constants used in ownCloud
  26. */
  27. namespace OCP;
  28. /** @deprecated 8.0.0 Use \OCP\Constants::PERMISSION_CREATE instead */
  29. const PERMISSION_CREATE = 4;
  30. /** @deprecated 8.0.0 Use \OCP\Constants::PERMISSION_READ instead */
  31. const PERMISSION_READ = 1;
  32. /** @deprecated 8.0.0 Use \OCP\Constants::PERMISSION_UPDATE instead */
  33. const PERMISSION_UPDATE = 2;
  34. /** @deprecated 8.0.0 Use \OCP\Constants::PERMISSION_DELETE instead */
  35. const PERMISSION_DELETE = 8;
  36. /** @deprecated 8.0.0 Use \OCP\Constants::PERMISSION_SHARE instead */
  37. const PERMISSION_SHARE = 16;
  38. /** @deprecated 8.0.0 Use \OCP\Constants::PERMISSION_ALL instead */
  39. const PERMISSION_ALL = 31;
  40. /** @deprecated 8.0.0 Use \OCP\Constants::FILENAME_INVALID_CHARS instead */
  41. const FILENAME_INVALID_CHARS = "\\/<>:\"|?*\n";
  42. /**
  43. * Class Constants
  44. *
  45. * @package OCP
  46. * @since 8.0.0
  47. */
  48. class Constants {
  49. /**
  50. * CRUDS permissions.
  51. * @since 8.0.0
  52. */
  53. const PERMISSION_CREATE = 4;
  54. const PERMISSION_READ = 1;
  55. const PERMISSION_UPDATE = 2;
  56. const PERMISSION_DELETE = 8;
  57. const PERMISSION_SHARE = 16;
  58. const PERMISSION_ALL = 31;
  59. /**
  60. * @since 8.0.0
  61. */
  62. const FILENAME_INVALID_CHARS = "\\/<>:\"|?*\n";
  63. }