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