/** * {@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); }
/** * {@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; }
/** * 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']; }
/** * 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']; }
/** * {@inheritdoc} */ public function getVisibility($path) { return $this->adapter->getVisibility($this->getPath($path)); }
/** * {@inheritdoc} */ public function getVisibility($path) { return $this->source->getVisibility($path); }