Documentation

Text
in package
implements HandlerInterface

Creates the resource thumbnail by plotting first few lines of a resource content.

Tags
author

zozlak

Table of Contents

Interfaces

HandlerInterface
Description of FormatInterface

Properties

$config  : object

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)

Properties

$config

private object $config

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
Return values
bool

        
On this page

Search results