package::i.tools
php-downloader v1.0 - www.ipunkt.biz
(c) 2002 - www.ipunkt.biz (rok)
Zip file creation class. Makes zip files.
Based on :
https://www.zend.com/codex.php?id=535&single=1 By Eric Mueller eric@themepark.com
https://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
| Methods | ||||||||
|---|---|---|---|---|---|---|---|---|
| 
					
	public
					
					
				 | unix2DosTime(int $unixtime = 0): integer
		Converts an Unix timestamp to a four byte DOS date and time format (date
in high two bytes, time in low two bytes…
	 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
 Returnsthe current date in a four byte DOS format | # | ||||||
| 
					
	public
					
					
				 | addFile(string $data, string $name, integer $time = 0)
		Adds "file" to archive
	 Adds "file" to archive Parameters
 | # | ||||||
| 
					
	public
					
					
				 | file(): string
		Dumps out file
	 Dumps out file Returnsthe zipped file | # | ||||||
| Properties | |||
|---|---|---|---|
| 
	public
					
					
				 | array | $datasec = [] | # | 
| 
	public
					
					
				 | array | $ctrl_dir = [] | # | 
| 
	public
					
					
				 | string | $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00" | # | 
| 
	public
					
					
				 | integer | $old_offset = 0 | # |