Resolver
class Resolver (View source)
Properties
| protected Application | $app | ||
| protected Connection | $connection | ||
| protected ThumbnailFormatService | $formatService | 
Methods
Resolver constructor.
Get the stored path for a file.
Store a path against a storage location for a file version and a thumbnail handle and format
Determine the path for a file version thumbnail based on the storage location
An access point for overriding how paths are built
Get the path from a configuration object
No description
No description
No description
No description
Details
        
                            
    __construct(Application $app, Connection $connection, ThumbnailFormatService $formatService)
        
    
    Resolver constructor.
        
                    protected        null|string
    getStoredThumnbailPath(int $file_id, int $version_id, int $storage_location_id, string $thumbnail_handle, string $format)
        
    
    Get the stored path for a file.
        
                    protected        
    storeThumbnailPath(string $path, int $file_id, int $version_id, int $storage_location_id, string $thumbnail_handle, string $format, bool $isBuilt = true)
        
    
    Store a path against a storage location for a file version and a thumbnail handle and format
        
                    protected        string
    determineThumbnailPath(Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration, string $format)
        
    
    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 ->getBuiltThumbnailPath()
        
                    protected        mixed
    getBuiltThumbnailPath($path, Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration, string $format)
        
    
    An access point for overriding how paths are built
        
                    protected        string
    getPathFromConfiguration(string $path, ConfigurationInterface $configuration)
        
    
    Get the path from a configuration object
        
                    protected        
    getStoredPath($file_id, $version_id, $storage_location_id, $thumbnail_handle)
        deprecated
    
    deprecated
No description
        
                    protected        
    storePath($path, $file_id, $version_id, $storage_location_id, $thumbnail_handle, $isBuilt = true)
        deprecated
    
    deprecated
No description
        
                    protected        
    determinePath(Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration)
        deprecated
    
    deprecated
No description
        
                    protected        
    getBuiltPath($path, Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration)
        deprecated
    
    deprecated
No description