WIKINDX API trunk

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

$modTime

var

public string $modTime

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
string

getName()

Get file name

public getName() : string
Return values
string

getNameEncoded()

Get raw url encoded file name

public getNameEncoded() : string
Return values
string

getNameHtml()

Get file name encoded for special chars

public getNameHtml() : string
Return values
string

getSize()

Get file size

public getSize() : int
Return values
int

getType()

Get file mime type

public getType() : string
Return values
string

isImage()

Is the file an image?

public isImage() : bool
Return values
bool

isValidForThumb()

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

public isValidForThumb() : bool
Return values
bool

        
On this page

Search results