XOOPS 2.5.6
Final
|
Public Member Functions | |
addBinaryFile ($filepath, $newfilename=null) | |
addBinaryFileData (&$data, $filename, $time=0) | |
addFile ($filepath, $newfilename=null) | |
addFileData (&$data, $filename, $time=0) | |
download ($name, $gzip=true) | |
XoopsTarDownloader ($ext= '.tar.gz', $mimyType= 'application/x-gzip') | |
Public Member Functions inherited from XoopsDownloader | |
_header ($filename) | |
addBinaryFile ($filepath, $newfilename=null) | |
addBinaryFileData (&$data, $filename, $time=0) | |
addFile ($filepath, $newfilename=null) | |
addFileData (&$data, $filename, $time=0) | |
download ($name, $gzip=true) | |
XoopsDownloader () | |
Additional Inherited Members | |
Public Attributes inherited from XoopsDownloader | |
$archiver | |
$ext | |
$mimetype | |
base class Class to handle tar files
Definition at line 30 of file tardownloader.php.
XoopsTarDownloader::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) |
Definition at line 71 of file tardownloader.php.
References $i.
XoopsTarDownloader::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 |
integer | $time |
Definition at line 119 of file tardownloader.php.
References $i, $time, and XOOPS_CACHE_PATH.
XoopsTarDownloader::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) |
Definition at line 51 of file tardownloader.php.
References $i.
XoopsTarDownloader::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 |
integer | $time |
Definition at line 92 of file tardownloader.php.
References $i, $time, and XOOPS_CACHE_PATH.
XoopsTarDownloader::download | ( | $name, | |
$gzip = true |
|||
) |
Send the file to the client
string | $name | Filename |
boolean | $gzip | Use GZ compression |
Definition at line 145 of file tardownloader.php.
XoopsTarDownloader::XoopsTarDownloader | ( | $ext = '.tar.gz' , |
|
$mimyType = 'application/x-gzip' |
|||
) |
Constructor
string | $ext | file extension |
string | $mimyType | Mimetype |
Definition at line 38 of file tardownloader.php.
References $ext.