summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib/streamwrapper.php
diff options
context:
space:
mode:
authorThomas Müller <thomas.mueller@tmit.eu>2014-02-19 07:04:37 +0100
committerThomas Müller <thomas.mueller@tmit.eu>2014-02-19 07:04:37 +0100
commit1e321406ee2d973e937637ab090cbd83a6eb40cf (patch)
tree78eca74636ab68b3f52ebac9c013c55a1526bd43 /apps/files_external/lib/streamwrapper.php
parent635b8f6b83ae37ac262c5f7a0bd40697824b9b67 (diff)
parentc6f4f85e27a10459422ab9789c894d13f0cd34c7 (diff)
downloadnextcloud-server-1e321406ee2d973e937637ab090cbd83a6eb40cf.tar.gz
nextcloud-server-1e321406ee2d973e937637ab090cbd83a6eb40cf.zip
Merge pull request #7114 from owncloud/scrutinizer_documentation_patches
polish documentation based on scrutinizer patches
Diffstat (limited to 'apps/files_external/lib/streamwrapper.php')
-rw-r--r--apps/files_external/lib/streamwrapper.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/files_external/lib/streamwrapper.php b/apps/files_external/lib/streamwrapper.php
index e484325e2fb..3e3dc3e3af5 100644
--- a/apps/files_external/lib/streamwrapper.php
+++ b/apps/files_external/lib/streamwrapper.php
@@ -9,6 +9,10 @@
namespace OC\Files\Storage;
abstract class StreamWrapper extends Common {
+
+ /**
+ * @return string|null
+ */
abstract public function constructUrl($path);
public function mkdir($path) {
@@ -76,10 +80,17 @@ abstract class StreamWrapper extends Common {
}
}
+ /**
+ * @param string $path
+ * @param string $target
+ */
public function getFile($path, $target) {
return copy($this->constructUrl($path), $target);
}
+ /**
+ * @param string $target
+ */
public function uploadFile($path, $target) {
return copy($path, $this->constructUrl($target));
}