PHP Class Sulu\Bundle\MediaBundle\Media\FormatCache\LocalFormatCache

Inheritance: implements Sulu\Bundle\MediaBundle\Media\FormatCache\FormatCacheInterface
Exibir arquivo Open project: sulu/sulu Class Usage Examples

Protected Properties

Property Type Description
$formats array
$path string
$pathUrl string
$segments integer

Public Methods

Method Description
__construct ( Symfony\Component\Filesystem\Filesystem $filesystem, $path, $pathUrl, $segments, $formats )
analyzedMediaUrl ( $url )
clear ( )
getMediaUrl ( $id, $fileName, $options, $format, $version, $subVersion )
purge ( $id, $fileName, $options )
save ( $content, $id, $fileName, $options, $format )

Protected Methods

Method Description
getFormatFromUrl ( string $url ) : string return the format by a given url.
getIdFromUrl ( string $url ) : integer return the id of by a given url.
getPath ( string $prePath, integer $id, string $fileName, string $format ) : string
getPathUrl ( string $prePath, integer $id, string $fileName, string $format, string $version = '', string $subVersion = '' ) : string
getSegment ( $id ) : string

Method Details

__construct() public method

public __construct ( Symfony\Component\Filesystem\Filesystem $filesystem, $path, $pathUrl, $segments, $formats )
$filesystem Symfony\Component\Filesystem\Filesystem

analyzedMediaUrl() public method

public analyzedMediaUrl ( $url )

clear() public method

public clear ( )

getFormatFromUrl() protected method

return the format by a given url.
protected getFormatFromUrl ( string $url ) : string
$url string
return string

getIdFromUrl() protected method

return the id of by a given url.
protected getIdFromUrl ( string $url ) : integer
$url string
return integer

getMediaUrl() public method

public getMediaUrl ( $id, $fileName, $options, $format, $version, $subVersion )

getPath() protected method

protected getPath ( string $prePath, integer $id, string $fileName, string $format ) : string
$prePath string
$id integer
$fileName string
$format string
return string

getPathUrl() protected method

protected getPathUrl ( string $prePath, integer $id, string $fileName, string $format, string $version = '', string $subVersion = '' ) : string
$prePath string
$id integer
$fileName string
$format string
$version string
$subVersion string
return string

getSegment() protected method

protected getSegment ( $id ) : string
$id
return string

purge() public method

public purge ( $id, $fileName, $options )

save() public method

public save ( $content, $id, $fileName, $options, $format )

Property Details

$formats protected_oe property

protected array $formats
return array

$path protected_oe property

protected string $path
return string

$pathUrl protected_oe property

protected string $pathUrl
return string

$segments protected_oe property

protected int $segments
return integer