Méthode |
Description |
|
__construct ( boolean | string $name = false ) |
constructor |
|
__destruct ( ) |
destructor |
|
checkTblChangeForm ( string $key, string $rownumber ) : boolean |
checks the superglobals provided if the tbl_change form is submitted
and uses the submitted/selected file |
|
checkUploadedFile ( ) : boolean |
If we are on a server with open_basedir, we must move the file
before opening it. The FAQ 1.11 explains how to create the "./tmp"
directory - if needed |
|
cleanUp ( ) : boolean |
deletes file if it is temporary, usually from a moved upload file |
|
close ( ) : void |
Closes the file |
|
delete ( ) : boolean |
deletes the file |
|
eof ( ) : boolean |
Checks whether we've reached end of file |
|
errorUnsupported ( ) : void |
Sets error message for unsupported compression. |
|
fetchUploadedFromTblChangeRequestMultiple ( array $file, string $rownumber, string $key ) : array |
strips some dimension from the multi-dimensional array from $_FILES |
|
getCharset ( ) : string |
Returns the character set of the file |
|
getChunkSize ( ) : integer |
Returns the chunk size |
|
getCompression ( ) : string |
Returns compression used by file. |
|
getContent ( ) : string | false |
Gets file content |
|
getContentLength ( ) : integer |
Returns the length of the content in the file |
|
getError ( ) : Message | null |
Returns possible error message. |
|
getHandle ( ) : resource |
Returns the file handle |
|
getName ( ) : string |
accessor |
|
getOffset ( ) : integer |
Returns the offset |
|
getRawContent ( ) : string | false |
Gets file content |
|
isError ( ) : boolean |
Checks whether there was any error. |
|
isReadable ( ) : boolean |
Checks whether file can be read. |
|
isTemp ( boolean $is_temp = null ) : boolean |
checks or sets the temp flag for this file
file objects with temp flags are deleted with object destruction |
|
isUploaded ( ) : boolean |
Whether file is uploaded. |
|
open ( ) : boolean |
Attempts to open the file. |
|
openZip ( string | null $specific_entry = null ) : boolean |
Opens file from zip |
|
read ( integer $size ) : string |
Reads data from file |
|
setCharset ( string $charset ) : void |
Sets the character set of the file |
|
setChunkSize ( integer $chunk_size ) : void |
Sets the chunk size |
|
setDecompressContent ( boolean $decompress ) : void |
Sets whether the content should be decompressed before returned |
|
setHandle ( object $handle ) : void |
Sets the file handle |
|
setLocalSelectedFile ( string $name ) : boolean |
Sets named file to be read from UploadDir. |
|
setName ( string $name ) : void |
accessor |
|
setSelectedFromTblChangeRequest ( string $key, string $rownumber = null ) : boolean |
sets the name if the file to the one selected in the tbl_change form |
|
setUploadedFile ( string $name ) : boolean |
Initializes object from uploaded file. |
|
setUploadedFromTblChangeRequest ( string $key, string $rownumber ) : boolean |
Loads uploaded file from table change request. |
|