TwicPicsParamsProcessor
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
Abstract method to be implemented in concrete params processor classes.
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.
The generic param handler. Known parameter values will be extracted into the corresponding properties as defined in COMPATIBLE_PARAMS. Unknown params will remain untouched.
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.
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.
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.
protected
handleParamFit($key, $value)
No description