PHP Interface Imbo\EventListener\ImageVariations\Storage\StorageInterface

Author: Christer Edvartsen ([email protected])
Datei anzeigen Open project: imbo/imbo Interface Usage Examples

Public Methods

Method Description
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

Method Details

deleteImageVariations() public method

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
return boolean

getImageVariation() public method

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
return string

storeImageVariation() public method

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
return boolean