Class jZipCreator

Description

Class to create a zip file.

Located in /utils/jZipCreator.class.php (line 19)


	
			
Variable Summary
Method Summary
void addContentFile (string $zipFileName, string $content, [integer $filetime = 0])
void addDir (string $path, [ $zipDirPath = ''], [ $recursive = false])
void addEmptyDir ( $name, [ $time = 0])
void addFile (string $filename, [ $zipFileName = ''], string $zipPath)
string getContent ()
void _addCentralDirEntry ( $name,  $info, [ $isDir = false])
void _getDOSTimeFormat ( $timestamp)
Variables
array $centralDirectory = array() (line 31)

Contains the central directory

  • access: protected
integer $centralDirOffset = 0 (line 37)

Offset of the central directory

  • access: protected
array $fileRecords = array() (line 25)

contains all file records

  • access: protected
Methods
addContentFile (line 90)

add a "logical" file to the zip archive

  • access: public
void addContentFile (string $zipFileName, string $content, integer $filetime)
  • string $zipFileName: the path of the file into the zip archive
  • string $content: the content of the file
  • integer $filetime: the time modification of the file
addDir (line 59)

adds the content of a directory to the zip archive

  • access: public
void addDir (string $path, [ $zipDirPath = ''], [ $recursive = false])
  • string $path: the path of the physical directory you want to add
  • $zipDirPath
  • $recursive
addEmptyDir (line 135)

adds an empty dir to the zip file

  • access: public
void addEmptyDir ( $name,  $time)
  • $name
  • $time
addFile (line 45)

adds a physical file to the zip archive

  • access: public
void addFile (string $filename, [ $zipFileName = ''], string $zipPath)
  • string $filename: the path of the physical file you want to add
  • string $zipPath: the path of the file inside the zip archive
  • $zipFileName
getContent (line 164)

create the contenu of the zip file

  • return: the content of the zip file
  • access: public
string getContent ()
_addCentralDirEntry (line 207)
  • access: protected
void _addCentralDirEntry ( $name,  $info, [ $isDir = false])
  • $name
  • $info
  • $isDir
_getDOSTimeFormat (line 193)
  • access: protected
void _getDOSTimeFormat ( $timestamp)
  • $timestamp

Documentation generated on Wed, 07 Sep 2011 13:48:15 +0200 by phpDocumentor 1.4.3