PHP 클래스 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.
파일 보기
프로젝트 열기: imbo/imbo
1 사용 예제들
공개 메소드들
메소드 |
설명 |
|
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 |
|
메소드 상세
getSubscribedEvents()
공개 정적인 메소드
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 |
Set the local \Imagick property
public setImagick ( Imagick $imagick ) : self |
$imagick |
Imagick |
An Imagick instance |
리턴 |
self |
|
Update the model data if the image has been changed
public updateModel ( Imbo\EventManager\EventInterface $event ) |
$event |
Imbo\EventManager\EventInterface |
The event instance |
updateModelBeforeStoring()
공개 메소드
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 |