[TheProdukt] element index

All elements
a b f g i m o p r s
a
top
$aAllowedFileTypes
FileUpload::$aAllowedFileTypes in fileupload.class.php
$aErrors
FileUpload::$aErrors in fileupload.class.php
$aUploaded
FileUpload::$aUploaded in fileupload.class.php
addError
FileUpload::addError() in fileupload.class.php
Adds a new error to the array
addFileType
FileUpload::addFileType() in fileupload.class.php
Valid filetypes can be added to the object by using this function.
addUploaded
FileUpload::addUploaded() in fileupload.class.php
Adds a new uploaded file to the array
b
top
$bIgnoreEmptyUploads
FileUpload::$bIgnoreEmptyUploads in fileupload.class.php
$bLowerCaseExtension
FileUpload::$bLowerCaseExtension in fileupload.class.php
$bMultiple
FileUpload::$bMultiple in fileupload.class.php
f
top
FileUpload
FileUpload::FileUpload() in fileupload.class.php
The contructor loads the $_FILES array as an reference into a local variable inside the class.
FileUpload
FileUpload in fileupload.class.php
The FileUpload class can be used to easily manage file uploads with the PHP engine. The FileUpload class can be used individually or can be used together with the FileUploadController class for more functionality.
fileupload.class.php
fileupload.class.php in fileupload.class.php
g
top
generateDirectoryStructure
Generates a directory structure on the server according to the full path given in the parameter. existing directories aren't touched.
getErrors
FileUpload::getErrors() in fileupload.class.php
This function returns an array with errors if they occured, if no errors were encountered this function will return false. Remember that rollback entries will only be entered after the move() has been initiated.
getExtension
FileUpload::getExtension() in fileupload.class.php
Extracts the extension of the filename provided
getHighestFileNumber
FileUpload::getHighestFileNumber() in fileupload.class.php
Returns the highest filenumber in the given directory. If the directory is empty, it will return the value 0.
getUploaded
FileUpload::getUploaded() in fileupload.class.php
Returns the array with succesfull uploads
i
top
$iMaxSize
FileUpload::$iMaxSize in fileupload.class.php
isEmptyDir
FileUpload::isEmptyDir() in fileupload.class.php
Checks if a given directory is empty (has no files/dirs in it)
isFileTypeAllowed
FileUpload::isFileTypeAllowed() in fileupload.class.php
Checks if the file extension and mimetype are allowed
m
top
$mStartNumber
FileUpload::$mStartNumber in fileupload.class.php
move
FileUpload::move() in fileupload.class.php
This is the main function which checks all the factors of the file(s) and moves them.
o
top
$oFileObject
FileUpload::$oFileObject in fileupload.class.php
p
top
prepareFileName
FileUpload::prepareFileName() in fileupload.class.php
This function prepares the filename. It checks if the extension should be casted to lowercase and returns the correct filename.
r
top
readDirectory
FileUpload::readDirectory() in fileupload.class.php
Lists the contents of a given directory.
rollback
FileUpload::rollback() in fileupload.class.php
Rollback deletes any uploaded pictures and destroys the empty directories which are left. It does not touch any other directories which are not empty and it doesn't delete any directories other than the ones provided when issuing the move() command.
s
top
$sDirectory
FileUpload::$sDirectory in fileupload.class.php
$sNewName
FileUpload::$sNewName in fileupload.class.php
setIgnoreEmptyUploads
FileUpload::setIgnoreEmptyUploads() in fileupload.class.php
If the bIgnoreEmptyUploads is set to true, errors which are caused
setLowerCaseExtension
FileUpload::setLowerCaseExtension() in fileupload.class.php
If the bLowerCaseExtension is set to true, extensions of file uploads will be casted to lowercase. This can be usefull if you do not wish to check if the file has the extension .JPG or .jpg for example.
setMaxSize
FileUpload::setMaxSize() in fileupload.class.php
Sets the maximum size in bytes the uploaded file(s) must comply to
setNewName
FileUpload::setNewName() in fileupload.class.php
Sets the new name(s) or naming method for the files being uploaded.
setStartNumber
FileUpload::setStartNumber() in fileupload.class.php
This function sets the startnumber from where the automatic numbering system should start counting.
a b f g i m o p r s