class TwicPicsParamsProcessor extends AbstractParamsProcessor (View source)

Constants

COMPATIBLE_PARAMS

Properties

protected $params from  AbstractParamsProcessor
protected $width from  AbstractParamsProcessor
protected $height from  AbstractParamsProcessor
protected $format from  AbstractParamsProcessor
protected $quality from  AbstractParamsProcessor
protected $fit from  AbstractParamsProcessor
protected $cropFit

Methods

array
finalizeParams()

Abstract method to be implemented in concrete params processor classes.

array
process(array $params)

Receives the original params array and calls the appropriate handler method for each param. Custom handlers can be defined by following this naming convention: handleParamNAME, where NAME is the name of the param.

void
handleParam(string $key, mixed $value)

The generic param handler. Known parameter values will be extracted into the corresponding properties as defined in COMPATIBLE_PARAMS. Unknown params will remain untouched.

handleParamFit($key, $value)

No description

Details

array finalizeParams()

Abstract method to be implemented in concrete params processor classes.

This method is called after all parameters have been processed and must return a finalized params array to generate the image URL.

Return Value

array

array process(array $params)

Receives the original params array and calls the appropriate handler method for each param. Custom handlers can be defined by following this naming convention: handleParamNAME, where NAME is the name of the param.

Parameters

array $params

Return Value

array

protected void handleParam(string $key, mixed $value)

The generic param handler. Known parameter values will be extracted into the corresponding properties as defined in COMPATIBLE_PARAMS. Unknown params will remain untouched.

Parameters

string $key
mixed $value

Return Value

void

protected handleParamFit($key, $value)

No description

Parameters

$key
$value