[ Index ]
 

Code source de XOOPS 2.0.17.1

Accédez au Source d'autres logiciels libres

title

Body

[fermer]

/htdocs/class/ -> tardownloader.php (sommaire)

base class

Poids: 177 lignes (6 kb)
Inclus ou requis:0 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 1 class

XoopsTarDownloader:: (6 méthodes):
  XoopsTarDownloader()
  addFile()
  addBinaryFile()
  addFileData()
  addBinaryFileData()
  download()


Classe: XoopsTarDownloader  - X-Ref

Send tar files through a http socket

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

param: string $ext       file extension
param: string $mimyType  Mimetype

addFile($filepath, $newfilename=null)   X-Ref
Add a file to the archive

param: string  $filepath       Full path to the file
param: string  $newfilename    Filename (if you don't want to use the original)

addBinaryFile($filepath, $newfilename=null)   X-Ref
Add a binary file to the archive

param: string  $filepath       Full path to the file
param: string  $newfilename    Filename (if you don't want to use the original)

addFileData(&$data, $filename, $time=0)   X-Ref
Add a dummy file to the archive

param: string  $data       Data to write
param: string  $filename   Name for the file in the archive
param: integer $time

addBinaryFileData(&$data, $filename, $time=0)   X-Ref
Add a binary dummy file to the archive

param: string  $data   Data to write
param: string  $filename   Name for the file in the archive
param: integer $time

download($name, $gzip = true)   X-Ref
Send the file to the client

param: string  $name   Filename
param: boolean $gzip   Use GZ compression



Généré le : Sun Nov 25 11:44:32 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics