XOOPS  2.6.0
XoopsTarDownloader Class Reference
Inheritance diagram for XoopsTarDownloader:
Inheritance graph

Public Member Functions

 __construct ($ext= '.tar.gz', $mimyType= 'application/x-gzip')
 
 addBinaryFile ($filepath, $newfilename=null)
 
 addBinaryFileData (&$data, $filename, $time=0)
 
 addFile ($filepath, $newfilename=null)
 
 addFileData (&$data, $filename, $time=0)
 
 download ($name, $gzip=true)
 
- Public Member Functions inherited from XoopsDownloader
 addBinaryFile ($filepath, $newfilename=null)
 
 addBinaryFileData (&$data, $filename, $time=0)
 
 addFile ($filepath, $newfilename=null)
 
 addFileData (&$data, $filename, $time=0)
 
 download ($name, $gzip=true)
 

Additional Inherited Members

- Protected Member Functions inherited from XoopsDownloader
 _header ($filename)
 
- Protected Attributes inherited from XoopsDownloader
 $archiver
 
 $ext
 
 $mimetype
 

Detailed Description

Definition at line 23 of file tardownloader.php.

Constructor & Destructor Documentation

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

Constructor

Parameters
string$extfile extension
string$mimyTypeMimetype

Definition at line 31 of file tardownloader.php.

References XoopsDownloader\$ext.

Member Function Documentation

XoopsTarDownloader::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)
Returns
false|null

Definition at line 71 of file tardownloader.php.

References $i, and $result.

XoopsTarDownloader::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
integer$timetime
Returns
false|null

Definition at line 132 of file tardownloader.php.

References $i, $result, and XoopsBaseConfig\get().

Here is the call graph for this function:

XoopsTarDownloader::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)
Returns
false|null

Definition at line 46 of file tardownloader.php.

References $i, and $result.

XoopsTarDownloader::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
integer$timetime
Returns
false|null

Definition at line 97 of file tardownloader.php.

References $i, $result, and XoopsBaseConfig\get().

Here is the call graph for this function:

XoopsTarDownloader::download (   $name,
  $gzip = true 
)

Send the file to the client

Parameters
string$nameFilename
boolean$gzipUse GZ compression
Returns
void

Definition at line 166 of file tardownloader.php.

References $name, and XoopsDownloader\_header().

Here is the call graph for this function:


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