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

Public Member Functions

 __construct ($ext='.zip', $mimyType='application/x-zip')
 
 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
 

Constructor & Destructor Documentation

◆ __construct()

__construct (   $ext = '.zip',
  $mimyType = 'application/x-zip' 
)

Constructor

Parameters
string$ext
string$mimyType
Returns
XoopsZipDownloader

Member Function Documentation

◆ addBinaryFile()

addBinaryFile (   $filepath,
  $newfilename = null 
)

Add Binary File

Parameters
string$filepath
string$newfilename

Reimplemented from XoopsDownloader.

◆ addBinaryFileData()

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

Add Binary File Data

Parameters
string$data
string$filename
int | string$time

Reimplemented from XoopsDownloader.

◆ addFile()

addFile (   $filepath,
  $newfilename = null 
)

Add file

Parameters
string$filepath
string$newfilename

Reimplemented from XoopsDownloader.

◆ addFileData()

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

Add File Data

Parameters
string$data
string$filename
int | mixed$time

Reimplemented from XoopsDownloader.

◆ download()

download (   $name,
  $gzip = true 
)

Fownload Data as a Zip file

Parameters
string$name
bool$gzip

Reimplemented from XoopsDownloader.

Here is the call graph for this function:

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