diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-29 13:45:50 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-05-29 13:45:50 +0200 |
commit | 8c5521fdfc2e9e85037c61cd77a254e3b7cd1b94 (patch) | |
tree | 27177b95cde27fa7e080f8db29c50926969ac4e2 /lib/public/files/storage.php | |
parent | c0f02be50a293c15007eea5a055dc2cd055561fc (diff) | |
download | nextcloud-server-8c5521fdfc2e9e85037c61cd77a254e3b7cd1b94.tar.gz nextcloud-server-8c5521fdfc2e9e85037c61cd77a254e3b7cd1b94.zip |
Add $storage->instanceOfStorage to handle instanceof for storage wrappers
Diffstat (limited to 'lib/public/files/storage.php')
-rw-r--r-- | lib/public/files/storage.php | 8 |
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); } |