class MediaItem

Constants

TYPE_FILE

TYPE_FOLDER

FILE_TYPE_IMAGE

FILE_TYPE_DOCUMENT

Properties

string $name
string $path
int $size
int $lastModified
string $type
string $publicUrl
static protected array $imageExtensions

Methods

__construct(string $path, int $size, int $lastModified, string $type, string $publicUrl)

No description

bool
isFile()

No description

getFileType()

No description

string
sizeToString()

Returns the item size as string.

string
lastModifiedAsString()

Returns the item last modification date as string.

Details

at line 62
__construct(string $path, int $size, int $lastModified, string $type, string $publicUrl)

No description

Parameters

string $path
int $size
int $lastModified
string $type
string $publicUrl

at line 75
bool isFile()

No description

Return Value

bool

at line 80
getFileType()

No description

at line 106
string sizeToString()

Returns the item size as string.

Return Value

string

Returns the size as string.

at line 117
string lastModifiedAsString()

Returns the item last modification date as string.

Return Value

string

Returns the item's last modification date as string.