Pass any methods custom to specific storage implementations to the wrapped storage

This commit is contained in:
Robin Appelman 2014-05-29 16:13:05 +02:00
parent 0ae7a49c8e
commit 998fa2d9be
1 changed files with 11 additions and 0 deletions

View File

@ -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);
}
}