PHP Класс Imbo\EventListener\ImageTransformationCache
Event listener that stores transformed images to disk. By using this listener Imbo will only
have to generate each transformation once. The listener is also responsible for deleting images
from the cache when the original images are deleted through the API.
The values used to generate the unique cache key for each image are:
- user
- image identifier
- normalized accept header
- image extension (can be null)
- image transformations (can be null)
Показать файл
Открыть проект
Примеры использования класса
Открытые методы
Приватные методы
Описание методов
__construct()
публичный Метод
deleteFromCache()
публичный Метод
Delete cached images from the cache
public deleteFromCache ( Imbo\EventManager\EventInterface $event ) |
$event |
Imbo\EventManager\EventInterface |
The current event |
getSubscribedEvents()
публичный статический Метод
loadFromCache()
публичный Метод
Load transformed images from the cache
public loadFromCache ( Imbo\EventManager\EventInterface $event ) |
$event |
Imbo\EventManager\EventInterface |
The current event |
storeInCache()
публичный Метод
Store transformed images in the cache
public storeInCache ( Imbo\EventManager\EventInterface $event ) |
$event |
Imbo\EventManager\EventInterface |
The current event |