1
0

constants.php 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  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 Use \OCP\Constants::PERMISSION_CREATE instead */
  29. const PERMISSION_CREATE = 4;
  30. /** @deprecated Use \OCP\Constants::PERMISSION_READ instead */
  31. const PERMISSION_READ = 1;
  32. /** @deprecated Use \OCP\Constants::PERMISSION_UPDATE instead */
  33. const PERMISSION_UPDATE = 2;
  34. /** @deprecated Use \OCP\Constants::PERMISSION_DELETE instead */
  35. const PERMISSION_DELETE = 8;
  36. /** @deprecated Use \OCP\Constants::PERMISSION_SHARE instead */
  37. const PERMISSION_SHARE = 16;
  38. /** @deprecated Use \OCP\Constants::PERMISSION_ALL instead */
  39. const PERMISSION_ALL = 31;
  40. /** @deprecated Use \OCP\Constants::FILENAME_INVALID_CHARS instead */
  41. const FILENAME_INVALID_CHARS = "\\/<>:\"|?*\n";
  42. class Constants {
  43. /**
  44. * CRUDS permissions.
  45. */
  46. const PERMISSION_CREATE = 4;
  47. const PERMISSION_READ = 1;
  48. const PERMISSION_UPDATE = 2;
  49. const PERMISSION_DELETE = 8;
  50. const PERMISSION_SHARE = 16;
  51. const PERMISSION_ALL = 31;
  52. const FILENAME_INVALID_CHARS = "\\/<>:\"|?*\n";
  53. }