[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/file/ -> fileupload.class.php (sommaire)

(pas de description)

Poids: 114 lignes (2 kb)
Inclus ou requis:0 fois
Référencé: 1 fois
Nécessite: 0 fichiers

Définit 1 class

FileUpload:: (10 méthodes):
  FileUpload()
  getFileName()
  setFileName()
  getMimeType()
  getTmpName()
  getError()
  setError()
  getSize()
  setFolder()
  getFolder()


Classe: FileUpload  - X-Ref

\ingroup File

Object representation of a file upload.
Wraps around the values in the $_FILES or $HTTP_POST_FILES array.
FileUpload( $uploadInfo )   X-Ref
Constructor. Takes as a parameter a position of the $_FILES array.

param: uploadInfo An associative array with information about the file uploaded.

getFileName()   X-Ref
returns the real name of the file uploaded

return: the file name

setFileName( $fileName )   X-Ref
Pas de description

getMimeType()   X-Ref
returns the MIME type of the file

return: a MIME type

getTmpName()   X-Ref

return: returns the name of this file in the temporary folder

getError()   X-Ref

returns: an error code if there was a problem uploading the file

setError( $error )   X-Ref
sets the error code. This method will be rarely needed

param: error A valid PHP upload error code

getSize()   X-Ref

return: returns the size of the uploaded file

setFolder( $folder )   X-Ref
sets the folder

param: folder

getFolder()   X-Ref

returns: the folder



Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics