|
XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
|
Public Member Functions | |
| __construct ($ext='.tar.gz', $mimyType='application/x-gzip') | |
| addFile ($filepath, $newfilename=null) | |
| addBinaryFile ($filepath, $newfilename=null) | |
| addFileData (&$data, $filename, $time=0) | |
| addBinaryFileData (&$data, $filename, $time=0) | |
| download ($name, $gzip=true) | |
Public Member Functions inherited from XoopsDownloader | |
| __construct () | |
| _header ($filename) | |
Additional Inherited Members | |
Data Fields inherited from XoopsDownloader | |
| $mimetype | |
| $ext | |
| $archiver | |
Class to handle tar files
Definition at line 29 of file tardownloader.php.
| __construct | ( | $ext = '.tar.gz', | |
| $mimyType = 'application/x-gzip' ) |
Constructor
| string | $ext | file extension |
| string | $mimyType | Mimetype |
Definition at line 38 of file tardownloader.php.
| addBinaryFile | ( | $filepath, | |
| $newfilename = null ) |
Add a binary file to the archive
| string | $filepath | Full path to the file |
| string | $newfilename | Filename (if you don't want to use the original) |
Reimplemented from XoopsDownloader.
Definition at line 71 of file tardownloader.php.
| addBinaryFileData | ( | & | $data, |
| $filename, | |||
| $time = 0 ) |
Add a binary dummy file to the archive
| string | $data | Data to write |
| string | $filename | Name for the file in the archive |
| int | $time |
Reimplemented from XoopsDownloader.
Definition at line 120 of file tardownloader.php.
| addFile | ( | $filepath, | |
| $newfilename = null ) |
Add a file to the archive
| string | $filepath | Full path to the file |
| string | $newfilename | Filename (if you don't want to use the original) |
Reimplemented from XoopsDownloader.
Definition at line 51 of file tardownloader.php.
| addFileData | ( | & | $data, |
| $filename, | |||
| $time = 0 ) |
Add a dummy file to the archive
| string | $data | Data to write |
| string | $filename | Name for the file in the archive |
| int | $time |
Reimplemented from XoopsDownloader.
Definition at line 92 of file tardownloader.php.
| download | ( | $name, | |
| $gzip = true ) |
Send the file to the client
| string | $name | Filename |
| bool | $gzip | Use GZ compression |
Reimplemented from XoopsDownloader.
Definition at line 147 of file tardownloader.php.