Documentation TYPO3 par Ameos

zipfile Class Reference

List of all members.

Public Member Functions

 unix2DosTime ($unixtime=0)
 addFile ($data, $name, $time=0)
 file ()

Public Attributes

 $datasec = array()
 $ctrl_dir = array()
 $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00"
 $old_offset = 0

Detailed Description

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

public

Definition at line 25 of file zip.lib.php.


Member Function Documentation

zipfile::addFile data,
name,
time = 0
 

Adds "file" to archive

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

Definition at line 92 of file zip.lib.php.

References unix2DosTime().

zipfile::file  ) 
 

Dumps out file

Returns:
string the zipped file
public

Definition at line 169 of file zip.lib.php.

zipfile::unix2DosTime unixtime = 0  ) 
 

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

Parameters:
integer the current Unix timestamp
Returns:
integer the current date in a four byte DOS format
private

Definition at line 66 of file zip.lib.php.

Referenced by addFile().


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


Généré par L'expert TYPO3 avec  doxygen 1.4.6