Class zipfile

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

  • access: public

Located in /administrator/components/com_mostlydbadmin/classes/zip.lib.php (line 25)


	
			
Variable Summary
 array $ctrl_dir
 array $datasec
 string $eof_ctrl_dir
 integer $old_offset
Method Summary
 void addFile (string $data, string $name, [integer $time = 0])
 string file ()
Variables
array $ctrl_dir = array() (line 39)

Central directory

array $datasec = array() (line 32)

Array to store compressed data

string $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00" (line 46)

End of central directory record

integer $old_offset = 0 (line 53)

Last offset position

Methods
addFile (line 92)

Adds "file" to archive

  • access: public
void addFile (string $data, string $name, [integer $time = 0])
  • string $data: file contents
  • string $name: name of the file in the archive (may contains the path)
  • integer $time: the current timestamp
file (line 171)

Dumps out file

  • return: the zipped file
  • access: public
string file ()

Documentation generated on Mon, 05 May 2008 16:24:36 +0400 by phpDocumentor 1.4.0