Amanu
Projektmanagement für Selbstständige und Freelancer
fileContract Class Reference

Static Public Member Functions

static get ()
 
static post ()
 
static delete ($_DELETE)
 

Static Private Member Functions

static getFileContractList ()
 
static getFileContract ($id)
 
static createFileContract ()
 
static modifyFileContract ()
 
static uploadfile ($for)
 
static deleteFileContract ($_DELETE)
 
static human_filesize ($bytes, $decimals=2)
 

Member Function Documentation

static get ( )
static

This method reacts to GET Requests, the upload method uses POST with GET parameters, we can not surely know, where it arrives (server dependent i think)

static post ( )
static

This methods reacts to POST Requests the upload method uses POST with GET parameters, we can not surely know, where it arrives (server dependent i think)

static delete (   $_DELETE)
static

This methods reacts to DELETE Requests

static getFileContractList ( )
staticprivate

Gets a list of all FileContracts

static getFileContract (   $id)
staticprivate

Gets a single FileContract

Parameters
$id- the id of the FileContract to get
static createFileContract ( )
staticprivate

creates a new FileContract

static modifyFileContract ( )
staticprivate

modifies a FileContract

static uploadfile (   $for)
staticprivate

Saves a file

Parameters
$for- the id of the contract to save for
Exceptions
Exception
static deleteFileContract (   $_DELETE)
staticprivate

deletes a FileContract

Parameters
$_DELETE
static human_filesize (   $bytes,
  $decimals = 2 
)
staticprivate

Converts bytes to human readable filesize

Author
Jeffrey Sambells http://jeffreysambells.com/2012/10/25/human-readable-filesize-php
Parameters
$bytes- the filesize in bytes
int$decimals- how many decimals should be shown
Returns
string - a human readable file size

The documentation for this class was generated from the following file: