Méthode | Description | |
---|---|---|
__construct ( array $params = [] ) | Class constructor | |
adjustImageTransformations ( Imbo\EventManager\EventInterface $event ) | Adjust image transformations | |
chooseVariation ( Imbo\EventManager\EventInterface $event ) | Choose an image variation based on the transformations and the original size of the image | |
deleteVariations ( Imbo\EventManager\EventInterface $event ) | Delete all image variations attached to an image | |
generateVariations ( Imbo\EventManager\EventInterface $event ) | Generate multiple variations based on the configuration | |
getMaxWidth ( integer $width, integer $height, array $transformations ) : array | null | Fetch the maximum width present in the set of transformations | |
getSubscribedEvents ( ) |
Méthode | Description | |
---|---|---|
configureDatabase ( array $config ) | Configure the database adapter | |
configureStorage ( array $config ) | Configure the storage adapter |
public __construct ( array $params = [] ) | ||
$params | array | Parameters for the event listener |
public adjustImageTransformations ( Imbo\EventManager\EventInterface $event ) | ||
$event | Imbo\EventManager\EventInterface | The current event |
public chooseVariation ( Imbo\EventManager\EventInterface $event ) | ||
$event | Imbo\EventManager\EventInterface | The current event |
public deleteVariations ( Imbo\EventManager\EventInterface $event ) | ||
$event | Imbo\EventManager\EventInterface | The current event |
public generateVariations ( Imbo\EventManager\EventInterface $event ) | ||
$event | Imbo\EventManager\EventInterface |
public getMaxWidth ( integer $width, integer $height, array $transformations ) : array | null | ||
$width | integer | The width of the existing image |
$height | integer | The height of the existing image |
$transformations | array | Transformations from the URL |
Résultat | array | null | Returns an array with a single element where the index is the index of the transformation that has the maximum width, and the value of the width |