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.

storage.php 1.1KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. <?php
  2. /**
  3. * Copyright (c) 2012 Robin Appelman <icewind@owncloud.com>
  4. * This file is licensed under the Affero General Public License version 3 or
  5. * later.
  6. * See the COPYING-README file.
  7. */
  8. namespace OC\Files\Storage;
  9. /**
  10. * Provide a common interface to all different storage options
  11. *
  12. * All paths passed to the storage are relative to the storage and should NOT have a leading slash.
  13. */
  14. interface Storage extends \OCP\Files\Storage {
  15. /**
  16. * get a cache instance for the storage
  17. *
  18. * @param string $path
  19. * @return \OC\Files\Cache\Cache
  20. */
  21. public function getCache($path = '');
  22. /**
  23. * get a scanner instance for the storage
  24. *
  25. * @param string $path
  26. * @return \OC\Files\Cache\Scanner
  27. */
  28. public function getScanner($path = '');
  29. /**
  30. * get the user id of the owner of a file or folder
  31. *
  32. * @param string $path
  33. * @return string
  34. */
  35. public function getOwner($path);
  36. /**
  37. * get a watcher instance for the cache
  38. *
  39. * @param string $path
  40. * @return \OC\Files\Cache\Watcher
  41. */
  42. public function getWatcher($path = '');
  43. /**
  44. * @return \OC\Files\Cache\Storage
  45. */
  46. public function getStorageCache();
  47. }