PHP Class Imbo\EventListener\Imagick
This event listener is responsible for reading the initial image data, and updating the model
before sending back transformed images to the client, or when storing transformed images in the
storage.
Afficher le fichier
Open project: imbo/imbo
Class Usage Examples
Méthodes publiques
Méthode |
Description |
|
getSubscribedEvents ( ) |
|
|
readImageBlob ( Imbo\EventManager\EventInterface $event ) |
Inject the image blob from the image model into the shared imagick instance |
|
setImagick ( Imagick $imagick ) : self |
Set the local \Imagick property |
|
updateModel ( Imbo\EventManager\EventInterface $event ) |
Update the model data if the image has been changed |
|
updateModelBeforeStoring ( Imbo\EventManager\EventInterface $event ) |
Update the image model blob before storing it in case an event listener has changed the
image |
|
Method Details
getSubscribedEvents()
public static méthode
readImageBlob()
public méthode
Inject the image blob from the image model into the shared imagick instance
public readImageBlob ( Imbo\EventManager\EventInterface $event ) |
$event |
Imbo\EventManager\EventInterface |
The event instance |
setImagick()
public méthode
Set the local \Imagick property
public setImagick ( Imagick $imagick ) : self |
$imagick |
Imagick |
An Imagick instance |
Résultat |
self |
|
updateModel()
public méthode
Update the model data if the image has been changed
public updateModel ( Imbo\EventManager\EventInterface $event ) |
$event |
Imbo\EventManager\EventInterface |
The event instance |
updateModelBeforeStoring()
public méthode
Update the image model blob before storing it in case an event listener has changed the
image
public updateModelBeforeStoring ( Imbo\EventManager\EventInterface $event ) |
$event |
Imbo\EventManager\EventInterface |
The event instance |