From c112a1d323e363eaf12574bf094a90ce2f89f028 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=B6rn=20Friedrich=20Dreyer?= Date: Fri, 20 Jun 2014 12:27:47 +0200 Subject: move to stream based IObjectStore interface, rearrange & reformat code --- lib/public/files/objectstore/iobjectstore.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) (limited to 'lib/public') 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 -- cgit v1.2.3