HandlerInterface
in
Description of FormatInterface
Tags
Table of Contents
Methods
- __construct() : mixed
- createThumbnail() : void
- Creates a thumbnail with given dimensions for a given resource
- getHandledMimeTypes() : array<string|int, string>
- Returns a list of handled mime types.
- maintainsAspectRatio() : bool
- Is the handler able to maintain the aspect ratio? (in other words is it possible to pass only one dimension and the other will be computed automatically)
Methods
__construct()
public
__construct(object $config) : mixed
Parameters
- $config : object
createThumbnail()
Creates a thumbnail with given dimensions for a given resource
public
createThumbnail(Resource $resource, int $width, int $height, string $path) : void
Parameters
- $resource : Resource
- $width : int
- $height : int
- $path : string
getHandledMimeTypes()
Returns a list of handled mime types.
public
getHandledMimeTypes() : array<string|int, string>
Return values
array<string|int, string>maintainsAspectRatio()
Is the handler able to maintain the aspect ratio? (in other words is it possible to pass only one dimension and the other will be computed automatically)
public
maintainsAspectRatio() : bool