class MediaHelper


Located at : UKNOWVA_ROOT/components/com_media/helpers/media.php

Methods

boolean
isImage(string $fileName)

Checks if the file is an image

boolean
getTypeIcon(string $fileName)

Checks if the file is an image

boolean
canUpload(array $file, string $err)

Checks if the file can be uploaded

static 
parseSize($size)

No description

imageResize($width, $height, $target)

No description

countFiles($dir)

No description

Details

at line 23
boolean isImage(string $fileName)

Checks if the file is an image

Parameters

string $fileName The filename

Return Value

boolean

at line 35
boolean getTypeIcon(string $fileName)

Checks if the file is an image

Parameters

string $fileName The filename

Return Value

boolean

at line 47
boolean canUpload(array $file, string $err)

Checks if the file can be uploaded

Parameters

array $file File information
string $err An error message to be returned

Return Value

boolean

at line 72
static parseSize($size)

Parameters

$size

at line 85
imageResize($width, $height, $target)

Parameters

$width
$height
$target

at line 106
countFiles($dir)

Parameters

$dir