Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJörn Friedrich Dreyer <jfd@butonic.de>2014-06-20 14:27:47 +0400
committerJörn Friedrich Dreyer <jfd@butonic.de>2014-06-20 14:27:47 +0400
commitc112a1d323e363eaf12574bf094a90ce2f89f028 (patch)
treef319ca97c148b96d8b202fe1a70e724b8ed1f30c /lib/public
parentf2fe00e972e2a592de99f49ad0d0c969ff287bc4 (diff)
move to stream based IObjectStore interface, rearrange & reformat code
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/files/objectstore/iobjectstore.php12
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