PHP 인터페이스 Sulu\Bundle\MediaBundle\Media\FormatManager\FormatManagerInterface

파일 보기 프로젝트 열기: sulu/sulu 0 사용 예제들

공개 메소드들

메소드 설명
clearCache ( ) Clears the format cache.
getFormatDefinition ( string $formatKey, string $locale = null, array $formatOptions = [] ) : array Returns a definition of a format with a given key. The returned formats contain the passed format options merged into them.
getFormatDefinitions ( string $locale = null, array $formatOptions = [] ) : array Returns all definitions of image formats. The returned formats contain the passed format-options merged into them.
getFormats ( integer $id, string $fileName, array $storageOptions, integer $version, integer $subVersion, string $mimeType ) : array
getMediaProperties ( string $url ) : array Return media id and format.
purge ( integer $idMedia, string $fileName, array $options ) : boolean Delete the image by the given parameters.
returnImage ( integer $id, string $formatName ) : Response Return the image by a given url.

메소드 상세

clearCache() 공개 메소드

Clears the format cache.
public clearCache ( )

getFormatDefinition() 공개 메소드

Returns a definition of a format with a given key. The returned formats contain the passed format options merged into them.
public getFormatDefinition ( string $formatKey, string $locale = null, array $formatOptions = [] ) : array
$formatKey string
$locale string
$formatOptions array
리턴 array

getFormatDefinitions() 공개 메소드

Returns all definitions of image formats. The returned formats contain the passed format-options merged into them.
public getFormatDefinitions ( string $locale = null, array $formatOptions = [] ) : array
$locale string
$formatOptions array
리턴 array

getFormats() 공개 메소드

public getFormats ( integer $id, string $fileName, array $storageOptions, integer $version, integer $subVersion, string $mimeType ) : array
$id integer
$fileName string
$storageOptions array
$version integer
$subVersion integer
$mimeType string
리턴 array

getMediaProperties() 공개 메소드

Return media id and format.
public getMediaProperties ( string $url ) : array
$url string
리턴 array

purge() 공개 메소드

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

returnImage() 공개 메소드

Return the image by a given url.
public returnImage ( integer $id, string $formatName ) : Response
$id integer
$formatName string
리턴 Symfony\Component\HttpFoundation\Response