PHP Class Xpressengine\Media\Models\Media

Author: XE Developers ([email protected])
Inheritance: extends Xpressengine\Storage\File, use trait Xpressengine\Media\MimeTypeFilter
Afficher le fichier Open project: xpressengine/xpressengine Class Usage Examples

Protected Properties

Свойство Type Description
$guarded array The attributes that aren't mass assignable.
$mimes array Available mime type

Méthodes publiques

Méthode Description
__toString ( ) : string Convert to string
getMetaModel ( ) : string Returns meta data model for current model
getMimes ( ) : array Returns available mime type
getType ( ) : string Returns media type
make ( File $file ) : static Make media model
meta ( ) : Illuminate\Database\Eloquent\Relations\HasOne Meta data relationship
render ( array $option = [] ) : string Rendered media
toArray ( ) : array Get the instance as an array.

Method Details

__toString() public méthode

Convert to string
public __toString ( ) : string
Résultat string

getMetaModel() abstract public méthode

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

getMimes() public static méthode

Returns available mime type
public static getMimes ( ) : array
Résultat array

getType() abstract public méthode

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

make() public static méthode

Make media model
public static make ( File $file ) : static
$file Xpressengine\Storage\File file model
Résultat static

meta() public méthode

Meta data relationship
public meta ( ) : Illuminate\Database\Eloquent\Relations\HasOne
Résultat Illuminate\Database\Eloquent\Relations\HasOne

render() abstract public méthode

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

toArray() public méthode

Get the instance as an array.
public toArray ( ) : array
Résultat array

Property Details

$guarded protected_oe property

The attributes that aren't mass assignable.
protected array $guarded
Résultat array

$mimes protected_oe static_oe property

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