PHP 클래스 Sulu\Bundle\MediaBundle\Twig\DispositionTypeTwigExtension

상속: extends Twig_Extension
파일 보기 프로젝트 열기: sulu/sulu

공개 메소드들

메소드 설명
__construct ( $default, array $mimeTypesInline, array $mimeTypesAttachment )
getFunctions ( ) : array Returns an array of possible function in this extension.
getMediaUrl ( Media $media, $dispositionType = null )
getName ( ) : string Returns the name of the extension.

비공개 메소드들

메소드 설명
getDispositionTypeByMimeType ( $mimeType )

메소드 상세

__construct() 공개 메소드

public __construct ( $default, array $mimeTypesInline, array $mimeTypesAttachment )
$mimeTypesInline array
$mimeTypesAttachment array

getFunctions() 공개 메소드

Returns an array of possible function in this extension.
public getFunctions ( ) : array
리턴 array

getMediaUrl() 공개 메소드

public getMediaUrl ( Media $media, $dispositionType = null )
$media Sulu\Bundle\MediaBundle\Api\Media

getName() 공개 메소드

Returns the name of the extension.
public getName ( ) : string
리턴 string The extension name