Class Dearchiver

Description
Method Summary
boolean uncompressFile (string $filename, mixed $path)
void unzip (path, $dir, mixed $file, [mixed $destination = ""], [mixed $permissions = 0755])
string _getFileType (string $filename)
Methods
uncompressFile (line 113)

Uncompresses the archive appropriate to its filetype to the given path.

  • since: 06/10/05
  • access: public
boolean uncompressFile (string $filename, mixed $path)
  • string $filename
unzip (line 64)

Function to unzip $file in $dir to $destination with $permissions

modified candido1212 at yahoo dot com dot br's code on php.net manual http://us3.php.net/zip

void unzip (path, $dir, mixed $file, [mixed $destination = ""], [mixed $permissions = 0755])
  • path, $dir: filename, destination, permissions (refer to mkdir)
_getFileType (line 39)

Figures out the type of archive.

  • return: the extension of the file (zip, gz, bz2, tar.gz, tar.bz2)
  • since: 06/10/05
  • access: private
string _getFileType (string $filename)
  • string $filename: filename

Documentation generated on Wed, 19 Sep 2007 10:22:39 -0400 by phpDocumentor 1.3.0RC3