PHP Class Imbo\EventListener\ImageVariations\Storage\Filesystem

Configuration options supported by this driver: -
(string) dataDir
Absolute path to the base directory the image variations should be stored in. Must be specified.
Author: Espen Hovlandsdal ([email protected])
Inheritance: implements Imbo\EventListener\ImageVariations\Storage\StorageInterface
Show file Open project: imbo/imbo Class Usage Examples

Public Methods

Method Description
__construct ( array $params = null ) Class constructor
deleteImageVariations ( $user, $imageIdentifier, $width = null )
getImageVariation ( $user, $imageIdentifier, $width )
storeImageVariation ( $user, $imageIdentifier, $blob, $width )

Private Methods

Method Description
getImagePath ( string $user, string $imageIdentifier, integer $width = null, boolean $includeFilename = true ) : string Get the path to an image

Method Details

__construct() public method

Class constructor
public __construct ( array $params = null )
$params array Parameters for the driver

deleteImageVariations() public method

public deleteImageVariations ( $user, $imageIdentifier, $width = null )

getImageVariation() public method

public getImageVariation ( $user, $imageIdentifier, $width )

storeImageVariation() public method

public storeImageVariation ( $user, $imageIdentifier, $blob, $width )