\FileServer

FileServer

File class holds the information about one file in the list

Summary

Methods
Properties
Constants
__construct()
getName()
getNameEncoded()
getNameHtml()
getSize()
getType()
getModTime()
getFileSize()
getFileType()
getFileMime()
getFileExtension()
isImage()
isValidForThumb()
$name
$location
$size
$type
$modTime
No constants found
No protected methods found
No protected properties found
N/A
No private methods found
No private properties found
N/A

Properties

$name

$name : 

var

Type

$location

$location : 

var

Type

$size

$size : 

var

Type

$type

$type : 

var

Type

$modTime

$modTime : 

var

Type

Methods

__construct()

__construct( name,  location) : 

Handler for files

Parameters

name
location

Returns

getName()

getName() : 

Get file name

Returns

getNameEncoded()

getNameEncoded() : 

Get raw url encoded file name

Returns

getNameHtml()

getNameHtml() : 

Get file name encoded for special chars

Returns

getSize()

getSize() : 

Get file size

Returns

getType()

getType() : 

Get file mime type

Returns

getModTime()

getModTime() : 

Get file modification time

Returns

getFileSize()

getFileSize(  file) : 

Get file size

Parameters

file

Returns

getFileType()

getFileType(  filepath) : 

Get file mime type

Parameters

filepath

Returns

getFileMime()

getFileMime(  filepath) : 

Get file mime type

Parameters

filepath

Returns

getFileExtension()

getFileExtension(  filepath) : 

Get file extension

Parameters

filepath

Returns

isImage()

isImage() : 

Is the file an image?

Returns

isValidForThumb()

isValidForThumb() : 

Is the file an image and therefore valid for thumbnail treatment?

Returns