diff options
author | Robin Appelman <icewind@owncloud.com> | 2014-05-29 16:13:05 +0200 |
---|---|---|
committer | Robin Appelman <icewind@owncloud.com> | 2014-05-29 16:13:05 +0200 |
commit | 998fa2d9be4a876cec00073b0706a793276ddd8f (patch) | |
tree | b24c560c2c6d7e2b8e493542e6ace64d24d9d61c /lib | |
parent | 0ae7a49c8e025a35189f62d125e1b4a8f5930c27 (diff) | |
download | nextcloud-server-998fa2d9be4a876cec00073b0706a793276ddd8f.tar.gz nextcloud-server-998fa2d9be4a876cec00073b0706a793276ddd8f.zip |
Pass any methods custom to specific storage implementations to the wrapped storage
Diffstat (limited to 'lib')
-rw-r--r-- | lib/private/files/storage/wrapper/wrapper.php | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/lib/private/files/storage/wrapper/wrapper.php b/lib/private/files/storage/wrapper/wrapper.php index dd2f76e05b8..364475a68e0 100644 --- a/lib/private/files/storage/wrapper/wrapper.php +++ b/lib/private/files/storage/wrapper/wrapper.php @@ -450,4 +450,15 @@ class Wrapper implements \OC\Files\Storage\Storage { public function instanceOfStorage($class) { return is_a($this, $class) or $this->storage->instanceOfStorage($class); } + + /** + * Pass any methods custom to specific storage implementations to the wrapped storage + * + * @param string $method + * @param array $args + * @return mixed + */ + public function __call($method, $args) { + return call_user_func_array(array($this->storage, $method), $args); + } } |