PHP Class Imbo\Storage\Filesystem

This storage driver stores image files in a local filesystem. Configuration options supported by this driver: -
(string) dataDir
Absolute path to the base directory the images should be stored in
Author: Christer Edvartsen ([email protected])
Inheritance: implements Imbo\Storage\StorageInterface
Afficher le fichier Open project: imbo/imbo Class Usage Examples

Méthodes publiques

Méthode Description
__construct ( array $params ) Class constructor
delete ( $user, $imageIdentifier )
getImage ( $user, $imageIdentifier )
getLastModified ( $user, $imageIdentifier )
getStatus ( )
imageExists ( $user, $imageIdentifier )
store ( $user, $imageIdentifier, $imageData )

Private Methods

Méthode Description
getImagePath ( string $user, string $imageIdentifier, boolean $includeFilename = true ) : string Get the path to an image

Method Details

__construct() public méthode

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

delete() public méthode

public delete ( $user, $imageIdentifier )

getImage() public méthode

public getImage ( $user, $imageIdentifier )

getLastModified() public méthode

public getLastModified ( $user, $imageIdentifier )

getStatus() public méthode

public getStatus ( )

imageExists() public méthode

public imageExists ( $user, $imageIdentifier )

store() public méthode

public store ( $user, $imageIdentifier, $imageData )