Class

eZImageHandler

class eZImageHandler

Constants

KEEP_SUFFIX

REPLACE_SUFFIX

PREPEND_TAG_REPLACE_SUFFIX

Methods

__construct(string $handlerName, bool $isEnabled = true, int $outputRewriteType = self::REPLACE_SUFFIX, array|bool $supportedInputMIMETypes = false, array|$supportedOutputMIMETypes $supportedOutputMIMETypes, array|bool $conversionRules = false, array|bool $filters = false, array|bool $mimeTagMap = false)

Initializes the image handler with data sent from the inheriting class.

isAvailable()

tagForMIMEType($mimeData)

supportedImageFilters()

conversionRules()

textForFilter($filterData)

rewriteURL($originalMimeData, $destinationMimeData, $rewriteType, $aliasName = false)

supportedInputMIMETypes()

supportedOutputMIMETypes()

isOutputMIMETypeSupported($mimeData)

isInputMIMETypeSupported($mimeData)

outputMIMEType($manager, $currentMimeData, $wantedMimeData, $supportedFormatsOriginal, $aliasName = false)

outputRewriteType()

isFilterSupported($filter)

convert($manager, $sourceMimeData, $destinationMimeData, $filters = false)

Details

at line 36
public __construct(string $handlerName, bool $isEnabled = true, int $outputRewriteType = self::REPLACE_SUFFIX, array|bool $supportedInputMIMETypes = false, array|$supportedOutputMIMETypes $supportedOutputMIMETypes, array|bool $conversionRules = false, array|bool $filters = false, array|bool $mimeTagMap = false)

Initializes the image handler with data sent from the inheriting class.

Parameters

string $handlerName The name of the current handler
bool $isEnabled A boolean which tells whether the handler can be used or not
int $outputRewriteType Defines how output filenames are rewritten
array|bool $supportedInputMIMETypes A list of MIME-Types the handler supports as input or \c false if no type as defined
array|$supportedOutputMIMETypes $supportedOutputMIMETypes A list of MIME-Types the handler supports as output or \c false if no type as defined
array|bool $conversionRules A list of conversion rules specific for this handler, is combined with the global rules
array|bool $filters A list of filters this handler supports
array|bool $mimeTagMap A mapping table which maps from a MIME-Type to a specific tag, this tag can be used when rewriting the filename.

at line 72
public isAvailable()

at line 83
public tagForMIMEType($mimeData)

Parameters

$mimeData

at line 98
public supportedImageFilters()

at line 106
public conversionRules()

at line 154
public textForFilter($filterData)

Parameters

$filterData

at line 173
public rewriteURL($originalMimeData, $destinationMimeData, $rewriteType, $aliasName = false)

Parameters

$originalMimeData
$destinationMimeData
$rewriteType
$aliasName

at line 222
public supportedInputMIMETypes()

at line 233
public supportedOutputMIMETypes()

at line 286
public isOutputMIMETypeSupported($mimeData)

Parameters

$mimeData

at line 313
public isInputMIMETypeSupported($mimeData)

Parameters

$mimeData

at line 347
public outputMIMEType($manager, $currentMimeData, $wantedMimeData, $supportedFormatsOriginal, $aliasName = false)

Parameters

$manager
$currentMimeData
$wantedMimeData
$supportedFormatsOriginal
$aliasName

at line 430
public outputRewriteType()

at line 438
public isFilterSupported($filter)

Parameters

$filter

at line 448
public convert($manager, $sourceMimeData, $destinationMimeData, $filters = false)

Parameters

$manager
$sourceMimeData
$destinationMimeData
$filters