Phpfox_Archive_Extension_Zip

Description

Handle archive with zip file extensions.

  • author: Raymond Benc
  • version: $Id: zip.class.php 1687 2010-07-22 03:13:27Z Raymond_Benc $
  • copyright: [PHPFOX_COPYRIGHT]

Located in /include/library/phpfox/archive/extension/zip.class.php (line 16)


	
			
Variable Summary
 object $_oZip
Method Summary
 Phpfox_Archive_Extension_Zip __construct ()
 mixed compress (string $sFile, string $sFolder)
 void extract (string $sFile, string $sLocation)
 bool test ()
Variables
object $_oZip = null (line 23)

Object of the PHP class ZipArchive

  • access: private
Methods
Constructor __construct (line 29)

Constructor

  • access: public
Phpfox_Archive_Extension_Zip __construct ()
compress (line 82)

Compress data into the archive

  • return: Returns the full path to the newly created ZIP file.
  • access: public
mixed compress (string $sFile, string $sFolder)
  • string $sFile: Name of the ZIP file
  • string $sFolder: Name of the folder we are going to compress. Must be located within the "file/cache/" folder.
extract (line 53)

Extracts data from the archive

  • access: public
void extract (string $sFile, string $sLocation)
  • string $sFile: Full path to the archive
  • string $sLocation: Final location of where to place the extracted content
test (line 42)

Test if the server has support for working with tar.gz files

  • return: True if support is there | False if no support for tar.gz files
  • access: public
bool test ()

Documentation generated on Tue, 28 Sep 2010 10:36:45 +0200 by phpDocumentor 1.4.0a2