API - XOOPS 2.5.11 Beta 2
By monxoops.fr
XoopsTarDownloader Class Reference
Inheritance diagram for XoopsTarDownloader:
Collaboration diagram for XoopsTarDownloader:

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)
 
 addFile ($filepath, $newfilename=null)
 
 addBinaryFile ($filepath, $newfilename=null)
 
 addFileData (&$data, $filename, $time=0)
 
 addBinaryFileData (&$data, $filename, $time=0)
 
 download ($name, $gzip=true)
 

Additional Inherited Members

- Data Fields inherited from XoopsDownloader
 $mimetype
 
 $ext
 
 $archiver
 

Detailed Description

base class Class to handle tar files Class XoopsTarDownloader

Constructor & Destructor Documentation

◆ __construct()

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

Constructor

Parameters
string$extfile extension
string$mimyTypeMimetype

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.

◆ 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
integer$time

Reimplemented from XoopsDownloader.

◆ 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.

◆ 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
integer$time

Reimplemented from XoopsDownloader.

◆ download()

download (   $name,
  $gzip = true 
)

Send the file to the client

Parameters
string$nameFilename
boolean$gzipUse GZ compression

Reimplemented from XoopsDownloader.

Here is the call graph for this function:

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