[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libraries/ -> zip.lib.php (sommaire)

(pas de description)

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

Définit 1 class

zipfile:: (3 méthodes):
  unix2DosTime()
  addFile()
  file()


Classe: zipfile  - X-Ref

Zip file creation class.
Makes zip files.

Based on :

http://www.zend.com/codex.php?id=535&single=1
By Eric Mueller <eric@themepark.com>

http://www.zend.com/codex.php?id=470&single=1
by Denis125 <webmaster@atlant.ru>

a patch from Peter Listiak <mlady@users.sourceforge.net> for last modified
date and time of the compressed file

Official ZIP file format: http://www.pkware.com/appnote.txt

unix2DosTime($unixtime = 0)   X-Ref
Converts an Unix timestamp to a four byte DOS date and time format (date
in high two bytes, time in low two bytes allowing magnitude comparison).

param: integer  the current Unix timestamp
return: integer  the current date in a four byte DOS format

addFile($data, $name, $time = 0)   X-Ref
Adds "file" to archive

param: string   file contents
param: string   name of the file in the archive (may contains the path)
param: integer  the current timestamp

file()   X-Ref
Dumps out file

return: string  the zipped file



Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics