phpDocumentor pivotx
[ class tree: pivotx ] [ index: pivotx ] [ all elements ]

Class: zipfile

Source Location: /modules/zip.lib.php

Class zipfile

Class Overview

Zip file creation class.

Makes zip files.

Based on :

http://www.zend.com/code/codex.php?ozid=535&single=1 which doesn't exist anymore - replaced by http://www.zend.com/code/codex.php?ozid=696&single=1 By Eric Mueller <[email protected]>

http://www.zend.com/code/codex.php?ozid=470&single=1 which doesn't exist anymore. by Denis125 <[email protected]>

a patch from Peter Listiak <[email protected]> for last modified date and time of the compressed file

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

Located in /modules/zip.lib.php [line 29]



		
				Author(s):
		
API Tags:
Access:  public

Properties

Methods

[ Top ]
Property Summary
array   $ctrl_dir   Central directory
array   $datasec   Array to store compressed data
string   $eof_ctrl_dir   End of central directory record
integer   $old_offset   Last offset position

[ Top ]
Method Summary
void   addFile()   Adds "file" to archive
string   file()   Dumps out file

[ Top ]
Properties
array   $ctrl_dir = array() [line 43]

Central directory


[ Top ]
array   $datasec = array() [line 36]

Array to store compressed data


[ Top ]
string   $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00" [line 50]

End of central directory record


[ Top ]
integer   $old_offset = 0 [line 57]

Last offset position


[ Top ]
Methods
addFile  [line 96]

  void addFile( string $data, string $name, [integer $time = 0]  )

Adds "file" to archive

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

API Tags:
Access:  public


[ Top ]
file  [line 174]

  string file( )

Dumps out file


API Tags:
Return:  the zipped file
Access:  public


[ Top ]

Documentation generated on Tue, 05 Sep 2017 01:06:16 +0200 by phpDocumentor 1.4.3