PHP Interface TippingCanoe\Imager\Storage\Driver

Represents a class that can be used as a storage driver for images.
Mostrar archivo Open project: tippingcanoe/imager

Public Methods

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

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 method

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

has() public method

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

saveFile() public method

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 method

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