Пример #1
0
 /**
  * {@inheritDoc}
  */
 public function getVisibility($pathOrUuid)
 {
     $path = $this->convertToPath($pathOrUuid);
     $this->guardNoInvalidUuid($pathOrUuid, $path);
     $this->guardInUploadPath($path);
     return $this->adapter->getVisibility($path);
 }
 /**
  * {@inheritdoc}
  */
 public function getVisibility($path)
 {
     if ($this->mainAdapter->has($path)) {
         return $this->mainAdapter->getVisibility($path);
     }
     return $this->fallback->getVisibility($path);
 }
Пример #3
0
 /**
  * {@inheritdoc}
  */
 public function getVisibility(string $path) : string
 {
     $visibility = $this->driver->getVisibility($path);
     if (isset($visibility['visibility']) && $visibility['visibility'] === AdapterInterface::VISIBILITY_PUBLIC) {
         return FilesystemContract::VISIBILITY_PUBLIC;
     }
     return FilesystemContract::VISIBILITY_PRIVATE;
 }
Пример #4
0
 /**
  * Get a file's visibility.
  *
  * @param string $path path to file
  *
  * @return string|false visibility (public|private) or FALSE
  *                      when fails to check it in existing file
  */
 public function getVisibility($path)
 {
     $path = Util::normalizePath($path);
     $this->assertPresent($path);
     if (($object = $this->adapter->getVisibility($path)) === false) {
         return false;
     }
     return $object['visibility'];
 }
Пример #5
0
 /**
  * Get a file's visibility.
  *
  * @param string $path path to file
  *
  * @return string|false visibility (public|private) or FALSE
  *                      when fails to check it in existing file
  */
 public function getVisibility($path)
 {
     $path = Util::normalizePath($path);
     $this->assertPresent($path);
     if ($visibility = $this->cache->getVisibility($path)) {
         return $visibility;
     }
     if (($object = $this->adapter->getVisibility($path)) === false) {
         return false;
     }
     $this->cache->updateObject($path, $object, true);
     return $object['visibility'];
 }
Пример #6
0
 /**
  * {@inheritdoc}
  */
 public function getVisibility($path)
 {
     return $this->adapter->getVisibility($this->getPath($path));
 }
Пример #7
0
 /**
  * {@inheritdoc}
  */
 public function getVisibility($path)
 {
     return $this->source->getVisibility($path);
 }