diff options
author | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-20 12:27:47 +0200 |
---|---|---|
committer | Jörn Friedrich Dreyer <jfd@butonic.de> | 2014-06-20 12:27:47 +0200 |
commit | c112a1d323e363eaf12574bf094a90ce2f89f028 (patch) | |
tree | f319ca97c148b96d8b202fe1a70e724b8ed1f30c /lib/public/files | |
parent | f2fe00e972e2a592de99f49ad0d0c969ff287bc4 (diff) | |
download | nextcloud-server-c112a1d323e363eaf12574bf094a90ce2f89f028.tar.gz nextcloud-server-c112a1d323e363eaf12574bf094a90ce2f89f028.zip |
move to stream based IObjectStore interface, rearrange & reformat code
Diffstat (limited to 'lib/public/files')
-rw-r--r-- | lib/public/files/objectstore/iobjectstore.php | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/lib/public/files/objectstore/iobjectstore.php b/lib/public/files/objectstore/iobjectstore.php index 3b6bd98d338..b2c5a9da134 100644 --- a/lib/public/files/objectstore/iobjectstore.php +++ b/lib/public/files/objectstore/iobjectstore.php @@ -11,21 +11,17 @@ interface IObjectStore { /** * @param string $urn the unified resource name used to identify the object - * @param string $tmpFile path to the local temporary file that should be - * used to store the object - * @return void + * @return resource stream with the read data * @throws Exception when something goes wrong, message will be logged */ - function getObject($urn, $tmpFile); + function readObject($urn); /** * @param string $urn the unified resource name used to identify the object - * @param string $tmpFile path to the local temporary file that the object - * should be loaded from - * @return void + * @param resource $stream stream with the data to write * @throws Exception when something goes wrong, message will be logged */ - function writeObject($urn, $tmpFile = null); + function writeObject($urn, $stream); /** * @param string $urn the unified resource name used to identify the object |