PHP Class Xpressengine\Media\Models\Image

Author: XE Developers ([email protected])
Inheritance: extends Media
Afficher le fichier Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Свойство Type Description
$mimes array Available mime type

Méthodes publiques

Méthode Description
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

Method Details

getMetaModel() public méthode

Returns meta data model for current model
public getMetaModel ( ) : string
Résultat string

getThumbnail() public static méthode

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
Résultat Image | null

getThumbnails() public static méthode

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

getType() public méthode

Returns media type
public getType ( ) : string
Résultat string

render() public méthode

Rendered media
public render ( array $option = [] ) : string
$option array rendering option
Résultat string

Property Details

$mimes protected_oe static_oe property

Available mime type
protected static array $mimes
Résultat array