| Files |
| [ class tree: Files ] [ index: Files ] [ all elements ] |
|
Packages: rootpackage Common Files Geographical Graphical HTML Network RealEstates Strings SupplyOrders SupplyPlans TimedSeries WorkBench Files: Classes: |
[ Top ] $listing =[line 108] Variable that contains result array of Scan_Dir() functionTags:
[ Top ] $mask =[line 69] Variable that contains octal permission maskTags:
[ Top ] $size =[line 54] Variable that contains octal size of the fileTags:
[ Top ] $size_string =[line 59] Variable that contains octal size of the file (text formatted)Tags:
[ Top ] Class Methodsmethod ContentType [line 931]
Content-Type detection function This function is used to retrieve content type of a file. Result is returned.
Tags:
Parameters:
[ Top ]
method ConvertMask [line 630]
Mask conversion function This function is used to convert octal fileperms mask to alpha like rwxr-xr-- Result is returned.
Tags:
Parameters:
[ Top ]
method filesize_format [line 348]
Filesize formatting function This function is used to convert a filesize in octets in the best filesize format (kB, MB, TB) Result is stored in $this->size_string and returned.
Tags:
Parameters:
[ Top ]
method FreeSpace [line 479]
Space free calculation function This function is used to get the freespace, totalspace and %age of freespace. Result is stored in $this->size and returned.
Tags:
Parameters:
[ Top ]
method GetExtensionByFilename [line 575]
Extension obtention function This function is used to obtain the extension of a filename. Result is stored in $this->extension and returned.
Tags:
Parameters:
[ Top ]
method GetIconByExtension [line 520]
Icon from extension obention function This function is used to obtain an icon for a specific extension. (icon xls.png for xls files) Result is returned.
Tags:
Parameters:
[ Top ]
method HeaderSize [line 1026]
File size from header detection function This function is used to extract size from HTTP headers. Result is returned.
Tags:
Parameters:
[ Top ]
method http_filesize [line 792]
Filesize through HTTP protocol function This function is used to retrieve size of a distant file via HTTP protocol. Original found at: http://www.tynril.info/index.php /2006/02/03/9-taille-d-un-fichier-distant-sur-un-serveur-http Result is returned.
Tags:
Parameters:
[ Top ]
method IsImage [line 706]
Image detection function This function is used to detect wheither or not the file is an image. Result is returned.
Tags:
Parameters:
[ Top ]
method RandomName [line 235]
Random rename function This function is used to rename a file randomly. Result is returned and stored in $this->filename
Tags:
Parameters:
[ Top ]
method ReadableType [line 979]
Readable type detection function This function is used to determine if a file type is text or binary. Result is returned.
Tags:
Parameters:
[ Top ]
method RemoveExtension [line 884]
Extension removing function This function is used to retrieve a filename without extension. Result is stored in $this->filename_noext and returned.
Tags:
Parameters:
[ Top ]
method RemoveHeader [line 1063]
Header removal function This function is used to remove HTTP headers. Result is returned.
Tags:
Parameters:
[ Top ]
method ReturnBytes [line 420]
Filesize unformatting function This function is used to convert a filesize in formatted form (for example: 8Mo or 8MB) in the octets form. Reverse engine of Files::filesize_format() Original function got on http://ch2.php.net/manual/fr/function.ini-get.php Result is stored in $this->size and returned.
Tags:
Parameters:
[ Top ]
method Scan_Dir [line 280]
Directory scan function This function is used to generate a filelisting of a directory and subdirs This function is a cousin of glob() which is included in PHP Libraries. Result is stored in $this->listing as a multi-dimensionnal array containing the filename, the directory and the concat of each ones
Tags:
Parameters:
[ Top ]
method UploadFile [line 154]
File upload function This function is used to treat an uploaded file on server. Target destination directory is not created if it does not exist. It must also be writable. Result is returned
Tags:
Parameters:
[ Top ]
Documentation generated on Wed, 26 Aug 2009 12:30:13 +0200 by phpDocumentor 1.4.1 |