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

Public Member Functions

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

Constructor & Destructor Documentation

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

Constructor

Parameters
string$extextention
string$mimyTypemimi type
Returns
XoopsZipDownloader

Definition at line 42 of file zipdownloader.php.

References XoopsDownloader\$ext.

Member Function Documentation

XoopsZipDownloader::addBinaryFile (   $filepath,
  $newfilename = null 
)

Add Binary File

Parameters
string$filepathpath
string$newfilenamename
Returns
false|null

Definition at line 79 of file zipdownloader.php.

References $result.

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

Add Binary File Data

Parameters
string&$datadata
string$filenamename
int$timefile time
Returns
result|null

Definition at line 117 of file zipdownloader.php.

References $result, and addFileData().

Here is the call graph for this function:

XoopsZipDownloader::addFile (   $filepath,
  $newfilename = null 
)

Add file

Parameters
string$filepathpath
string$newfilenamename
Returns
false|null

Definition at line 57 of file zipdownloader.php.

References $result.

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

Add File Data

Parameters
string&$datadata
string$filenamename
int$timetime
Returns
result

Definition at line 102 of file zipdownloader.php.

References $result.

Referenced by addBinaryFileData().

Here is the caller graph for this function:

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

Fownload Data as a Zip file

Parameters
string$namezip name
bool$gzipunused
Returns
void

Definition at line 131 of file zipdownloader.php.

References $name, $result, and XoopsDownloader\_header().

Here is the call graph for this function:


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