Class Am_Upload

Description

Class to handle user uploads

Located in /library/Am/Upload.php (line 7)


	
			
Variable Summary
mixed $files
mixed $prefix
mixed $storeFolder
mixed $tempSeconds
Method Summary
Am_Upload __construct (Am_Di $di, [ $prefix = "tmp"])
void addUpload (Upload $u)
void checkFileAndMove (Upload $file)
void delete ( $fn)
void getStoreFolder ()
void getUploads ()
void loadFromStored ()
void processDelete (array $deleteFilenames)
void processReSubmit ( $fieldName,  $upload)
void processSubmit ( $fieldName)
void removeFiles ()
void serialize ()
void setPrefix ( $prefix)
void setStoreFolder ( $storeFolder)
void setTemp (int $seconds)
void unserialize ( $string)
Variables
mixed $files = array() (line 13)
  • access: protected
mixed $prefix (line 10)
  • access: protected
mixed $storeFolder (line 9)
  • access: protected
mixed $tempSeconds (line 11)
  • access: protected
Methods
Constructor __construct (line 16)
  • access: public
Am_Upload __construct (Am_Di $di, [ $prefix = "tmp"])
addUpload (line 117)
void addUpload (Upload $u)
checkFileAndMove (line 55)
void checkFileAndMove (Upload $file)
delete (line 141)
void delete ( $fn)
  • $fn
getDi (line 23)
  • access: public
Am_Di getDi ()
getStoreFolder (line 103)
void getStoreFolder ()
getUploads (line 121)
void getUploads ()
loadFromStored (line 28)
  • access: public
void loadFromStored ()
processDelete (line 133)
void processDelete (array $deleteFilenames)
  • array $deleteFilenames
processReSubmit (line 72)
void processReSubmit ( $fieldName,  $upload)
  • $fieldName
  • $upload
processSubmit (line 35)

Store submitted files to storeFolder

void processSubmit ( $fieldName)
  • $fieldName
removeFiles (line 84)
void removeFiles ()
serialize (line 124)
void serialize ()
setPrefix (line 89)
void setPrefix ( $prefix)
  • $prefix
setStoreFolder (line 94)
void setStoreFolder ( $storeFolder)
  • $storeFolder
setTemp (line 112)

If you assign value to this, each uploaded file will have additional prefix

in end of filename equal to time() when it shall be deleted

  • see: UploadTable->cleanUp() for this
void setTemp (int $seconds)
  • int $seconds
unserialize (line 130)
void unserialize ( $string)
  • $string

Documentation generated on Wed, 11 Apr 2012 09:05:30 -0400 by phpDocumentor 1.4.4