class Resolver (View source)

Properties

protected Application $app
protected Connection $connection
protected ThumbnailFormatService $formatService

Methods

__construct(Application $app, Connection $connection, ThumbnailFormatService $formatService)

Resolver constructor.

null|string
getPath(Version $file_version, Version $thumbnail)

Get the path for a file version

null|string
getStoredThumnbailPath(int $file_id, int $version_id, int $storage_location_id, string $thumbnail_handle, string $format) deprecated

No description

null|string
getStoredThumbnailPath(int $file_id, int $version_id, int $storage_location_id, string $thumbnail_handle, string $format)

Get the stored path for a file.

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

string|null
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

mixed
getBuiltThumbnailPath($path, Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration, string $format)

An access point for overriding how paths are built

string
getPathFromConfiguration(string $path, ConfigurationInterface $configuration)

Get the path from a configuration object

getStoredPath($file_id, $version_id, $storage_location_id, $thumbnail_handle) deprecated

No description

storePath($path, $file_id, $version_id, $storage_location_id, $thumbnail_handle, $isBuilt = true) deprecated

No description

determinePath(Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration) deprecated

No description

getBuiltPath($path, Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration) deprecated

No description

Details

__construct(Application $app, Connection $connection, ThumbnailFormatService $formatService)

Resolver constructor.

Parameters

Application $app
Connection $connection
ThumbnailFormatService $formatService

null|string getPath(Version $file_version, Version $thumbnail)

Get the path for a file version

Parameters

Version $file_version
Version $thumbnail

Return Value

null|string

protected null|string getStoredThumnbailPath(int $file_id, int $version_id, int $storage_location_id, string $thumbnail_handle, string $format) deprecated

deprecated Use getStoredThumbnailPath

Parameters

int $file_id
int $version_id
int $storage_location_id
string $thumbnail_handle
string $format

Return Value

null|string

protected null|string getStoredThumbnailPath(int $file_id, int $version_id, int $storage_location_id, string $thumbnail_handle, string $format)

Get the stored path for a file.

Parameters

int $file_id
int $version_id
int $storage_location_id
string $thumbnail_handle
string $format

Return Value

null|string

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

Parameters

string $path
int $file_id
int $version_id
int $storage_location_id
string $thumbnail_handle
string $format
bool $isBuilt Have we had the configuration generate the path yet

protected string|null 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()

Parameters

Version $file_version
Version $thumbnail
StorageLocation $storage
ConfigurationInterface $configuration
string $format

Return Value

string|null

protected mixed getBuiltThumbnailPath($path, Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration, string $format)

An access point for overriding how paths are built

Parameters

$path
Version $file_version
Version $thumbnail
StorageLocation $storage
ConfigurationInterface $configuration
string $format

Return Value

mixed

protected string getPathFromConfiguration(string $path, ConfigurationInterface $configuration)

Get the path from a configuration object

Parameters

string $path
ConfigurationInterface $configuration

Return Value

string

protected getStoredPath($file_id, $version_id, $storage_location_id, $thumbnail_handle) deprecated

deprecated Use getStoredThumbnailPath

Parameters

$file_id
$version_id
$storage_location_id
$thumbnail_handle

protected storePath($path, $file_id, $version_id, $storage_location_id, $thumbnail_handle, $isBuilt = true) deprecated

deprecated Use storeThumbnailPath

Parameters

$path
$file_id
$version_id
$storage_location_id
$thumbnail_handle
$isBuilt

protected determinePath(Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration) deprecated

deprecated Use determineThumbnailPath

Parameters

Version $file_version
Version $thumbnail
StorageLocation $storage
ConfigurationInterface $configuration

protected getBuiltPath($path, Version $file_version, Version $thumbnail, StorageLocation $storage, ConfigurationInterface $configuration) deprecated

deprecated Use getBuiltThumbnailPath

Parameters

$path
Version $file_version
Version $thumbnail
StorageLocation $storage
ConfigurationInterface $configuration