Resolver
class Resolver (View source)
Properties
protected | $app | ||
protected Connection | $connection |
Methods
null|string
getStoredPath(int $file_id, int $version_id, int $storage_location_id, string $thumbnail_handle)
Get the stored path for a file
storePath($path, $file_id, $version_id, $storage_location_id, $thumbnail_handle, bool $isBuilt = true)
Store a path against a storage location for a file version and a thumbnail handle
string
determinePath(Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration)
Determine the path for a file version thumbnail based on the storage location
mixed
getBuiltPath($path, Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration)
An access point for overriding how paths are built
string
getPathFromConfiguration(string $path, ConfigurationInterface $configuration)
Get the path from a configuration object
Details
__construct(Application $app, Connection $connection)
Resolver constructor.
protected null|string
getStoredPath(int $file_id, int $version_id, int $storage_location_id, string $thumbnail_handle)
Get the stored path for a file
protected
storePath($path, $file_id, $version_id, $storage_location_id, $thumbnail_handle, bool $isBuilt = true)
Store a path against a storage location for a file version and a thumbnail handle
protected string
determinePath(Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration)
Determine the path for a file version thumbnail based on the storage location
NOTE: If you're wanting to change how file paths are determined, a better method
to override would be ->getBuiltPath()
protected mixed
getBuiltPath($path, Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration)
An access point for overriding how paths are built
protected string
getPathFromConfiguration(string $path, ConfigurationInterface $configuration)
Get the path from a configuration object