\App\Site\ModelsMediaElement

Media Element Model

Summary

Methods
Properties
Constants
getOwner()
getRelativePath()
getThumb()
getThumbUrl()
getImage()
getImageUrl()
getId()
getPath()
getFilename()
getMimetype()
getFilesize()
getUserId()
getLazyload()
getCreatedAt()
getUpdatedAt()
No public properties found
TRANSPARENT_PIXEL
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Constants

TRANSPARENT_PIXEL

TRANSPARENT_PIXEL

Methods

getRelativePath()

getRelativePath(): string

gets relative path

Throws

\Exception

Returns

string

getThumb()

getThumb(string  $size,string|null  $mode = null,string|null  $class = null,array  $img_attributes = array()): string

gets thumbnail img html tag

Parameters

string $size
string|null $mode
string|null $class
array $img_attributes

Throws

\App\Base\Exceptions\PermissionDeniedException
\Degami\Basics\Exceptions\BasicException

Returns

string

getThumbUrl()

getThumbUrl(string  $size,string|null  $mode = null): string

gets thumbnail url

Parameters

string $size
string|null $mode

Throws

\Degami\Basics\Exceptions\BasicException
\App\Base\Exceptions\PermissionDeniedException
\Exception

Returns

string

getImage()

getImage(string  $class = 'img-fluid'): string

gets original image img tag

Parameters

string $class

Throws

\App\Base\Exceptions\PermissionDeniedException
\Degami\Basics\Exceptions\BasicException

Returns

string

getImageUrl()

getImageUrl(): string

gets original image url

Throws

\App\Base\Exceptions\PermissionDeniedException
\Degami\Basics\Exceptions\BasicException

Returns

string

getId()

getId(): integer

Returns

integer

getPath()

getPath(): string

Returns

string

getFilename()

getFilename(): string

Returns

string

getMimetype()

getMimetype(): string

Returns

string

getFilesize()

getFilesize(): integer

Returns

integer

getUserId()

getUserId(): integer

Returns

integer

getLazyload()

getLazyload(): boolean

Returns

boolean

getCreatedAt()

getCreatedAt(): \DateTime

Returns

\DateTime

getUpdatedAt()

getUpdatedAt(): \DateTime

Returns

\DateTime