The ThumbnailRepository class.
A class responsible for thumbnail management.
◆ __construct()
◆ deleteThumbnails()
deleteThumbnails |
( |
ResourceType |
$resourceType, |
|
|
string |
$path, |
|
|
string |
$fileName = null |
|
) |
| |
Deletes all thumbnails under the given path defined by the resource type, path and file name.
- Returns
- bool
true
if deleted successfully
- Exceptions
-
◆ getAllowedSizes()
Returns an array of allowed sizes for thumbnails.
- Returns
- array
◆ getContainer()
◆ getThumbnail()
getThumbnail |
( |
ResourceType |
$resourceType, |
|
|
string |
$path, |
|
|
string |
$fileName, |
|
|
int |
$requestedWidth, |
|
|
int |
$requestedHeight |
|
) |
| |
Returns a thumbnail object for a given file defined by the resource type, path and file name. The real size of the thumbnail image will be adjusted to one of the sizes allowed by the thumbnail configuration.
- Parameters
-
ResourceType | $resourceType | source file resource type |
string | $path | source file directory path |
string | $fileName | source file name |
int | $requestedWidth | requested thumbnail height |
int | $requestedHeight | requested thumbnail height |
- Exceptions
-
Exception
◆ getThumbnailBackend()
Returns the Backend object where thumbnails are stored.
- Returns
- Backend
◆ getThumbnailsPath()
Returns backend-relative directory path where thumbnails are stored.
- Returns
- string
◆ isBitmapSupportEnabled()
isBitmapSupportEnabled |
( |
| ) |
|
Returns information about bitmap support for thumbnails. If bitmap support is disabled, thumbnails for bitmaps will not be generated.
- Returns
- bool
true
if bitmap support is enabled
◆ $dispatcher
The documentation for this class was generated from the following file: