XOOPS 2.5.6  Final
 All Classes Namespaces Files Functions Variables Pages
XoopsTarDownloader Class Reference
Inheritance diagram for XoopsTarDownloader:
Inheritance graph

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
 

Detailed Description

base class Class to handle tar files

Definition at line 30 of file tardownloader.php.

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)

Definition at line 71 of file tardownloader.php.

References $i.

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$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

Parameters
string$filepathFull path to the file
string$newfilenameFilename (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

Parameters
string$dataData to write
string$filenameName 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

Parameters
string$nameFilename
boolean$gzipUse GZ compression

Definition at line 145 of file tardownloader.php.

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

Constructor

Parameters
string$extfile extension
string$mimyTypeMimetype

Definition at line 38 of file tardownloader.php.

References $ext.


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