Class archive_mail_pack_zip

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 /plugins/archive_mail/class/archive_mail_pack_zip.php (line 54)

archive_mail_pack
   |
   --archive_mail_pack_zip
Variable Summary
 array $ctrl_dir
 array $datasec
 string $eof_ctrl_dir
 mixed $extension
 integer $old_offset
 mixed $type0
 mixed $type1
Method Summary
 void addFile (string $data, string $name, [integer $time = 0])
 string file ()
Variables
array $ctrl_dir = array() (line 67)

Central directory

array $datasec = array() (line 60)

Array to store compressed data

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

End of central directory record

mixed $extension = '.zip' (line 94)

File extension


Redefinition of:
archive_mail_pack::$extension
File extension
integer $old_offset = 0 (line 81)

Last offset position

mixed $type0 = 'application' (line 86)

MIME type


Redefinition of:
archive_mail_pack::$type0
MIME type
mixed $type1 = 'x-zip' (line 90)

MIME subtype


Redefinition of:
archive_mail_pack::$type1
MIME subtype
Methods
addFile (line 104)

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 contain the path)
  • integer $time: the current timestamp

Redefinition of:
archive_mail_pack::addFile()
Adds file to archive
file (line 193)

Dumps out file

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

Redefinition of:
archive_mail_pack::file()
Prints archive contents

Inherited Methods

Inherited From archive_mail_pack

 archive_mail_pack::addFile()
 archive_mail_pack::file()
 archive_mail_pack::sendheader()

Documentation generated on Sun, 22 Nov 2009 17:36:17 +0200 by phpDocumentor 1.4.3