PHP Interface Sulu\Bundle\MediaBundle\Media\FormatCache\FormatCacheInterface

Show file Open project: sulu/sulu Interface Usage Examples

Public Methods

Method Description
analyzedMediaUrl ( string $url ) : array Return the id and the format of a media.
clear ( ) Clears the format cache.
getMediaUrl ( integer $id, string $fileName, array $options, string $format, integer $version, integer $subVersion ) : string Return the url to an specific format of an media.
purge ( integer $id, string $fileName, array $options ) : boolean Delete the image by the given parameters.
save ( string $content, integer $id, string $fileName, array $options, string $format ) : boolean Save image and return the url to the image.

Method Details

analyzedMediaUrl() public method

Return the id and the format of a media.
public analyzedMediaUrl ( string $url ) : array
$url string
return array ($id, $format)

clear() public method

Clears the format cache.
public clear ( )

getMediaUrl() public method

Return the url to an specific format of an media.
public getMediaUrl ( integer $id, string $fileName, array $options, string $format, integer $version, integer $subVersion ) : string
$id integer
$fileName string
$options array
$format string
$version integer
$subVersion integer
return string

purge() public method

Delete the image by the given parameters.
public purge ( integer $id, string $fileName, array $options ) : boolean
$id integer
$fileName string
$options array
return boolean

save() public method

Save image and return the url to the image.
public save ( string $content, integer $id, string $fileName, array $options, string $format ) : boolean
$content string
$id integer
$fileName string
$options array
$format string
return boolean