XCL Web Application Platform 2.5.0
The XoopsCube Legacy Project
Loading...
Searching...
No Matches
XoopsTarDownloader Class Reference
Inheritance diagram for XoopsTarDownloader:
XoopsDownloader

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
 

Detailed Description

Class to handle tar files

Definition at line 29 of file tardownloader.php.

Constructor & Destructor Documentation

◆ __construct()

__construct ( $ext = '.tar.gz',
$mimyType = 'application/x-gzip' )

Constructor

Parameters
string$extfile extension
string$mimyTypeMimetype

Definition at line 38 of file tardownloader.php.

Member Function Documentation

◆ addBinaryFile()

addBinaryFile ( $filepath,
$newfilename = null )

Add a binary file to the archive

Parameters
string$filepathFull path to the file
string$newfilenameFilename (if you don't want to use the original)

Reimplemented from XoopsDownloader.

Definition at line 71 of file tardownloader.php.

◆ addBinaryFileData()

addBinaryFileData ( & $data,
$filename,
$time = 0 )

Add a binary dummy file to the archive

Parameters
string$dataData to write
string$filenameName for the file in the archive
int$time

Reimplemented from XoopsDownloader.

Definition at line 120 of file tardownloader.php.

◆ addFile()

addFile ( $filepath,
$newfilename = null )

Add a file to the archive

Parameters
string$filepathFull path to the file
string$newfilenameFilename (if you don't want to use the original)

Reimplemented from XoopsDownloader.

Definition at line 51 of file tardownloader.php.

◆ addFileData()

addFileData ( & $data,
$filename,
$time = 0 )

Add a dummy file to the archive

Parameters
string$dataData to write
string$filenameName for the file in the archive
int$time

Reimplemented from XoopsDownloader.

Definition at line 92 of file tardownloader.php.

◆ download()

download ( $name,
$gzip = true )

Send the file to the client

Parameters
string$nameFilename
bool$gzipUse GZ compression

Reimplemented from XoopsDownloader.

Definition at line 147 of file tardownloader.php.


The documentation for this class was generated from the following file: