PEEL Shopping
Open source ecommerce : PEEL Shopping
Public Member Functions | Data Fields | Protected Member Functions | Protected Attributes
FineUploader Class Reference

Public Member Functions

 __construct ()
 
 getName ()
 Get the original filename. More...
 
 getUploadName ()
 Get the name of the uploaded file. More...
 
 handleUpload ($uploadDirectory, $name=null)
 Process the upload. More...
 
 toBytes ($str)
 Converts a given size with units to bytes. More...
 

Data Fields

 $allowedExtensions = array()
 
 $sizeLimit = null
 
 $inputName = 'qqfile'
 
 $chunksFolder = 'chunks'
 
 $chunksCleanupProbability = 0.001
 
 $chunksExpireIn = 604800
 

Protected Member Functions

 getUniqueTargetPath ($uploadDirectory, $filename)
 Returns a path to use with this upload. More...
 
 cleanupChunks ()
 Deletes all file parts in the chunks folder for files uploaded more than chunksExpireIn seconds ago. More...
 
 removeDir ($dir)
 Removes a directory and all files contained inside. More...
 

Protected Attributes

 $uploadName
 

Detailed Description

Definition at line 3 of file FineUploader.php.

Constructor & Destructor Documentation

__construct ( )

Definition at line 15 of file FineUploader.php.

Member Function Documentation

cleanupChunks ( )
protected

Deletes all file parts in the chunks folder for files uploaded more than chunksExpireIn seconds ago.

Definition at line 225 of file FineUploader.php.

getName ( )

Get the original filename.

Definition at line 22 of file FineUploader.php.

getUniqueTargetPath (   $uploadDirectory,
  $filename 
)
protected

Returns a path to use with this upload.

Check that the name does not exist, and appends a suffix otherwise.

Parameters
string$uploadDirectoryTarget directory
string$filenameThe name of the file to use.

Definition at line 180 of file FineUploader.php.

getUploadName ( )

Get the name of the uploaded file.

Definition at line 33 of file FineUploader.php.

handleUpload (   $uploadDirectory,
  $name = null 
)

Process the upload.

Parameters
string$uploadDirectoryTarget directory.
string$nameOverwrites the name of the file.

Definition at line 42 of file FineUploader.php.

removeDir (   $dir)
protected

Removes a directory and all files contained inside.

Parameters
string$dir

Definition at line 245 of file FineUploader.php.

toBytes (   $str)

Converts a given size with units to bytes.

Parameters
string$str

Definition at line 259 of file FineUploader.php.

Field Documentation

$allowedExtensions = array()

Definition at line 5 of file FineUploader.php.

$chunksCleanupProbability = 0.001

Definition at line 10 of file FineUploader.php.

$chunksExpireIn = 604800

Definition at line 11 of file FineUploader.php.

$chunksFolder = 'chunks'

Definition at line 8 of file FineUploader.php.

$inputName = 'qqfile'

Definition at line 7 of file FineUploader.php.

$sizeLimit = null

Definition at line 6 of file FineUploader.php.

$uploadName
protected

Definition at line 13 of file FineUploader.php.


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

This documentation for Open ecommerce PEEL Shopping and PEEL.fr has been generated by Doxygen on Thu Oct 15 2015 14:41:43 - Peel ecommerce is a product of Agence web Advisto SAS. All rights reserved.