Property | Type | Description | |
---|---|---|---|
$formats | array | ||
$path | string | ||
$pathUrl | string | ||
$segments | integer |
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 ) |
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 |
public __construct ( Symfony\Component\Filesystem\Filesystem $filesystem, $path, $pathUrl, $segments, $formats ) | ||
$filesystem | Symfony\Component\Filesystem\Filesystem |
protected getFormatFromUrl ( string $url ) : string | ||
$url | string | |
return | string |
protected getIdFromUrl ( string $url ) : integer | ||
$url | string | |
return | integer |
public getMediaUrl ( $id, $fileName, $options, $format, $version, $subVersion ) |