PHP Class PartKeepr\ImageBundle\Entity\CachedImage

Inheritance: extends PartKeepr\CoreBundle\Entity\BaseEntity
Datei anzeigen Open project: partkeepr/PartKeepr

Public Methods

Method Description
__construct ( UploadedFile $image, string $cacheFile ) Creates a new cache entry for a specific image.
getCacheFile ( ) : string Returns the cache file.
getOriginalId ( ) : integer Returns the original ID.
getOriginalType ( ) : string Returns the original type.

Method Details

__construct() public method

Creates a new cache entry for a specific image.
public __construct ( UploadedFile $image, string $cacheFile )
$image PartKeepr\UploadedFileBundle\Entity\UploadedFile The image to cache
$cacheFile string The file which holds the cached image

getCacheFile() public method

Returns the cache file.
public getCacheFile ( ) : string
return string The cache file including path

getOriginalId() public method

Returns the original ID.
public getOriginalId ( ) : integer
return integer

getOriginalType() public method

Returns the original type.
public getOriginalType ( ) : string
return string