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:
authorRobin Appelman <icewind@owncloud.com>2014-05-29 15:45:50 +0400
committerRobin Appelman <icewind@owncloud.com>2014-05-29 15:45:50 +0400
commit8c5521fdfc2e9e85037c61cd77a254e3b7cd1b94 (patch)
tree27177b95cde27fa7e080f8db29c50926969ac4e2 /lib/public
parentc0f02be50a293c15007eea5a055dc2cd055561fc (diff)
Add $storage->instanceOfStorage to handle instanceof for storage wrappers
Diffstat (limited to 'lib/public')
-rw-r--r--lib/public/files/storage.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/lib/public/files/storage.php b/lib/public/files/storage.php
index 5ec8ac6245c..323d20db564 100644
--- a/lib/public/files/storage.php
+++ b/lib/public/files/storage.php
@@ -327,4 +327,12 @@ interface Storage {
* @return bool true if the files are stored locally, false otherwise
*/
public function isLocal();
+
+ /**
+ * Check if the storage is an instance of $class or is a wrapper for a storage that is an instance of $class
+ *
+ * @param string $class
+ * @return bool
+ */
+ public function instanceOfStorage($class);
}