constants.php 2.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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) 2015, 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. }