PHP 클래스 Xpressengine\Media\Models\Image

저자: XE Developers ([email protected])
상속: extends Media
파일 보기 프로젝트 열기: xpressengine/xpressengine 1 사용 예제들

보호된 프로퍼티들

프로퍼티 타입 설명
$mimes array Available mime type

공개 메소드들

메소드 설명
getMetaModel ( ) : string Returns meta data model for current model
getThumbnail ( Media $media, string $type, string $dimension, boolean $defaultSelf = true ) : Image | null Get a thumbnail image
getThumbnails ( Media $media, null | string $type = null ) : Image[] Get thumbnails
getType ( ) : string Returns media type
render ( array $option = [] ) : string Rendered media

메소드 상세

getMetaModel() 공개 메소드

Returns meta data model for current model
public getMetaModel ( ) : string
리턴 string

getThumbnail() 공개 정적인 메소드

Get a thumbnail image
public static getThumbnail ( Media $media, string $type, string $dimension, boolean $defaultSelf = true ) : Image | null
$media Media media instance
$type string thumbnail make type
$dimension string dimension code
$defaultSelf boolean if set true, returns self when thumbnail not exists
리턴 Image | null

getThumbnails() 공개 정적인 메소드

Get thumbnails
public static getThumbnails ( Media $media, null | string $type = null ) : Image[]
$media Media media instance
$type null | string thumbnail make type
리턴 Image[]

getType() 공개 메소드

Returns media type
public getType ( ) : string
리턴 string

render() 공개 메소드

Rendered media
public render ( array $option = [] ) : string
$option array rendering option
리턴 string

프로퍼티 상세

$mimes 보호되어 있는 정적으로 프로퍼티

Available mime type
protected static array $mimes
리턴 array