PHP Интерфейс Imbo\EventListener\ImageVariations\Storage\StorageInterface

Автор: Christer Edvartsen ([email protected])
Показать файл Открыть проект Примеры использования интерфейса

Открытые методы

Метод Описание
deleteImageVariations ( string $user, string $imageIdentifier, integer $width = null ) : boolean Remove an image variation
getImageVariation ( string $user, string $imageIdentifier, integer $width ) : string Get the blob of an image variation
storeImageVariation ( string $user, string $imageIdentifier, string $blob, integer $width ) : boolean Store an image variation

Описание методов

deleteImageVariations() публичный Метод

Remove an image variation
public deleteImageVariations ( string $user, string $imageIdentifier, integer $width = null ) : boolean
$user string The user which the image belongs to
$imageIdentifier string The image identifier
$width integer Only delete the variation with this width
Результат boolean

getImageVariation() публичный Метод

Get the blob of an image variation
public getImageVariation ( string $user, string $imageIdentifier, integer $width ) : string
$user string The user which the image belongs to
$imageIdentifier string The image identifier of the original
$width integer The width of the variation
Результат string

storeImageVariation() публичный Метод

Store an image variation
public storeImageVariation ( string $user, string $imageIdentifier, string $blob, integer $width ) : boolean
$user string The user which the image belongs to
$imageIdentifier string The image identifier of the original
$blob string The image blob to store
$width integer The width of the variation
Результат boolean