FileServer
in package
FileServer
File class holds the information about one file in the list
Table of Contents
Properties
- $location : Location
- var
- $modTime : string
- var
- $name : string
- var
- $size : int
- var
- $type : string
- var
Methods
- __construct() : mixed
- Handler for files
- getModTime() : string
- Get file modification time
- getName() : string
- Get file name
- getNameEncoded() : string
- Get raw url encoded file name
- getNameHtml() : string
- Get file name encoded for special chars
- getSize() : int
- Get file size
- getType() : string
- Get file mime type
- isImage() : bool
- Is the file an image?
- isValidForThumb() : bool
- Is the file an image and therefore valid for thumbnail treatment?
Properties
$location
var
public
Location
$location
$modTime
var
public
string
$modTime
$name
var
public
string
$name
$size
var
public
int
$size
$type
var
public
string
$type
Methods
__construct()
Handler for files
public
__construct(string $name, Location $location) : mixed
Parameters
- $name : string
-
Filename
- $location : Location
-
Location
getModTime()
Get file modification time
public
getModTime() : string
Return values
stringgetName()
Get file name
public
getName() : string
Return values
stringgetNameEncoded()
Get raw url encoded file name
public
getNameEncoded() : string
Return values
stringgetNameHtml()
Get file name encoded for special chars
public
getNameHtml() : string
Return values
stringgetSize()
Get file size
public
getSize() : int
Return values
intgetType()
Get file mime type
public
getType() : string
Return values
stringisImage()
Is the file an image?
public
isImage() : bool
Return values
boolisValidForThumb()
Is the file an image and therefore valid for thumbnail treatment?
public
isValidForThumb() : bool