Ejemplo n.º 1
0
 public function __construct(\OC\Files\Storage\Storage $storage)
 {
     $this->storage = $storage;
     $this->storageId = $this->storage->getId();
     $this->cache = $storage->getCache();
     $this->permissionsCache = $storage->getPermissionsCache();
 }
Ejemplo n.º 2
0
 public function __construct(\OC\Files\Storage\Storage $storage)
 {
     $this->storage = $storage;
     $this->storageId = $this->storage->getId();
     $this->cache = $storage->getCache();
     $this->permissionsCache = $storage->getPermissionsCache();
     $this->cacheActive = !Config::getSystemValue('filesystem_cache_readonly', false);
 }
Ejemplo n.º 3
0
 /**
  * get a permissions cache instance for the cache
  *
  * @param string $path
  * @return \OC\Files\Cache\Permissions
  */
 public function getPermissionsCache($path = '')
 {
     return $this->storage->getPermissionsCache($path);
 }