PHP Interface TippingCanoe\Imager\Storage\Driver

Represents a class that can be used as a storage driver for images.
Afficher le fichier Open project: tippingcanoe/imager

Méthodes publiques

Méthode Description
delete ( Image $image, array $filters = [] ) Tells the driver to delete an image.
getPublicUri ( Image $image, array $filters = [] ) : string Returns the public URI for an image by a specific configuration.
has ( Image $image, array $filters = [] ) : boolean Asks the driver if it has a particular image.
saveFile ( File $file, Image $image, array $filters = [] ) Saves an image.
tempOriginal ( Image $image ) : File Tells the driver to prepare a copy of the original image locally.

Method Details

delete() public méthode

Deleting must at least ensure that afterwards, any call to has() returns false.
public delete ( Image $image, array $filters = [] )
$image TippingCanoe\Imager\Model\Image
$filters array

getPublicUri() public méthode

Returns the public URI for an image by a specific configuration.
public getPublicUri ( Image $image, array $filters = [] ) : string
$image TippingCanoe\Imager\Model\Image
$filters array
Résultat string

has() public méthode

Asks the driver if it has a particular image.
public has ( Image $image, array $filters = [] ) : boolean
$image TippingCanoe\Imager\Model\Image
$filters array
Résultat boolean

saveFile() public méthode

Exceptions can provide extended error information and will abort the save process.
public saveFile ( File $file, Image $image, array $filters = [] )
$file Symfony\Component\HttpFoundation\File\File
$image TippingCanoe\Imager\Model\Image
$filters array

tempOriginal() public méthode

Tells the driver to prepare a copy of the original image locally.
public tempOriginal ( Image $image ) : File
$image TippingCanoe\Imager\Model\Image
Résultat Symfony\Component\HttpFoundation\File\File