Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

8 лет назад
8 лет назад
9 лет назад
8 лет назад
9 лет назад
8 лет назад
9 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
11 лет назад
123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. <?php
  2. /**
  3. * @copyright Copyright (c) 2016, ownCloud, Inc.
  4. *
  5. * @author Bjoern Schiessle <bjoern@schiessle.org>
  6. * @author Björn Schießle <bjoern@schiessle.org>
  7. * @author Christopher Schäpers <kondou@ts.unde.re>
  8. * @author Joas Schilling <coding@schilljs.com>
  9. * @author Morris Jobke <hey@morrisjobke.de>
  10. * @author Robin McCorkell <robin@mccorkell.me.uk>
  11. * @author Thomas Müller <thomas.mueller@tmit.eu>
  12. * @author Tom Needham <tom@owncloud.com>
  13. *
  14. * @license AGPL-3.0
  15. *
  16. * This code is free software: you can redistribute it and/or modify
  17. * it under the terms of the GNU Affero General Public License, version 3,
  18. * as published by the Free Software Foundation.
  19. *
  20. * This program is distributed in the hope that it will be useful,
  21. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  22. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  23. * GNU Affero General Public License for more details.
  24. *
  25. * You should have received a copy of the GNU Affero General Public License, version 3,
  26. * along with this program. If not, see <http://www.gnu.org/licenses/>
  27. *
  28. */
  29. use OCP\API;
  30. // Privatedata
  31. API::register(
  32. 'get',
  33. '/privatedata/getattribute',
  34. array('OC_OCS_Privatedata', 'get'),
  35. 'core',
  36. API::USER_AUTH,
  37. array('app' => '', 'key' => '')
  38. );
  39. API::register(
  40. 'get',
  41. '/privatedata/getattribute/{app}',
  42. array('OC_OCS_Privatedata', 'get'),
  43. 'core',
  44. API::USER_AUTH,
  45. array('key' => '')
  46. );
  47. API::register(
  48. 'get',
  49. '/privatedata/getattribute/{app}/{key}',
  50. array('OC_OCS_Privatedata', 'get'),
  51. 'core',
  52. API::USER_AUTH
  53. );
  54. API::register(
  55. 'post',
  56. '/privatedata/setattribute/{app}/{key}',
  57. array('OC_OCS_Privatedata', 'set'),
  58. 'core',
  59. API::USER_AUTH
  60. );
  61. API::register(
  62. 'post',
  63. '/privatedata/deleteattribute/{app}/{key}',
  64. array('OC_OCS_Privatedata', 'delete'),
  65. 'core',
  66. API::USER_AUTH
  67. );