|
| __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) |
|
| __construct () |
|
| _header ($filename) |
|
| addFile ($filepath, $newfilename=null) |
|
| addBinaryFile ($filepath, $newfilename=null) |
|
| addFileData (&$data, $filename, $time=0) |
|
| addBinaryFileData (&$data, $filename, $time=0) |
|
| download ($name, $gzip=true) |
|
base class Class to handle tar files Class XoopsTarDownloader
◆ __construct()
__construct |
( |
|
$ext = '.tar.gz' , |
|
|
|
$mimyType = 'application/x-gzip' |
|
) |
| |
Constructor
- Parameters
-
string | $ext | file extension |
string | $mimyType | Mimetype |
◆ addBinaryFile()
addBinaryFile |
( |
|
$filepath, |
|
|
|
$newfilename = null |
|
) |
| |
Add a binary file to the archive
- Parameters
-
string | $filepath | Full path to the file |
string | $newfilename | Filename (if you don't want to use the original) |
Reimplemented from XoopsDownloader.
◆ addBinaryFileData()
addBinaryFileData |
( |
& |
$data, |
|
|
|
$filename, |
|
|
|
$time = 0 |
|
) |
| |
Add a binary dummy file to the archive
- Parameters
-
string | $data | Data to write |
string | $filename | Name for the file in the archive |
integer | $time | |
Reimplemented from XoopsDownloader.
◆ addFile()
addFile |
( |
|
$filepath, |
|
|
|
$newfilename = null |
|
) |
| |
Add a file to the archive
- Parameters
-
string | $filepath | Full path to the file |
string | $newfilename | Filename (if you don't want to use the original) |
Reimplemented from XoopsDownloader.
◆ addFileData()
addFileData |
( |
& |
$data, |
|
|
|
$filename, |
|
|
|
$time = 0 |
|
) |
| |
Add a dummy file to the archive
- Parameters
-
string | $data | Data to write |
string | $filename | Name for the file in the archive |
integer | $time | |
Reimplemented from XoopsDownloader.
◆ download()
download |
( |
|
$name, |
|
|
|
$gzip = true |
|
) |
| |
Send the file to the client
- Parameters
-
string | $name | Filename |
boolean | $gzip | Use GZ compression |
Reimplemented from XoopsDownloader.
The documentation for this class was generated from the following file: