[ Index ]
 

Code source de phpMyAdmin 2.10.3

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/libraries/ -> unzip.lib.php (sommaire)

ZIP file unpack classes. Contributed to the phpMyAdmin project.

Author: Holger Boskugel <vbwebprofi@gmx.de>
Copyright: Copyright © 2003, Holger Boskugel, Berlin, Germany
License: http://opensource.org/licenses/gpl-license.php GNU Public License
Version: 1.0.1
Poids: 492 lignes (16 kb)
Inclus ou requis: 1 fois
Référencé: 0 fois
Nécessite: 0 fichiers

Définit 2 classes

SimpleUnzip:: (10 méthodes):
  SimpleUnzip()
  Count()
  GetData()
  GetEntry()
  GetError()
  GetErrorMsg()
  GetName()
  GetPath()
  GetTime()
  ReadFile()

SimpleUnzipEntry:: (1 méthode):
  SimpleUnzipEntry()


Classe: SimpleUnzip  - X-Ref

Unzip class, which retrieves entries from ZIP files.

Supports only the compression modes
-  0 : Stored,
-  8 : Deflated and
- 12 : BZIP2

Based on :<BR>
<BR>
{@link http://www.pkware.com/products/enterprise/white_papers/appnote.html
* Official ZIP file format}<BR>
{@link http://msdn.microsoft.com/library/en-us/w98ddk/hh/w98ddk/storage_5l4m.asp
* Microsoft DOS date/time format}

SimpleUnzip($in_FileName = '')   X-Ref
Contructor of the class

param: string      File name
return: SimpleUnzip Instanced class

Count()   X-Ref
Counts the entries

return: integer Count of ZIP entries

GetData($in_Index)   X-Ref
Gets data of the specified ZIP entry

param: integer Index of the ZIP entry
return: mixed   Data for the ZIP entry

GetEntry($in_Index)   X-Ref
Gets an entry of the ZIP file

param: integer             Index of the ZIP entry
return: SimpleUnzipEntry    Entry of the ZIP file

GetError($in_Index)   X-Ref
Gets error code for the specified ZIP entry

param: integer     Index of the ZIP entry
return: integer     Error code for the ZIP entry

GetErrorMsg($in_Index)   X-Ref
Gets error message for the specified ZIP entry

param: integer     Index of the ZIP entry
return: string      Error message for the ZIP entry

GetName($in_Index)   X-Ref
Gets file name for the specified ZIP entry

param: integer     Index of the ZIP entry
return: string      File name for the ZIP entry

GetPath($in_Index)   X-Ref
Gets path of the file for the specified ZIP entry

param: integer     Index of the ZIP entry
return: string      Path of the file for the ZIP entry

GetTime($in_Index)   X-Ref
Gets file time for the specified ZIP entry

param: integer     Index of the ZIP entry
return: integer     File time for the ZIP entry (unix timestamp)

ReadFile($in_FileName)   X-Ref
Reads ZIP file and extracts the entries

param: string              File name of the ZIP archive
return: array               ZIP entry list (see also class variable {@link $Entries $Entries})

Classe: SimpleUnzipEntry  - X-Ref

Entry of the ZIP file.

SimpleUnzipEntry($in_Entry)   X-Ref
Contructor of the class

param: array               Entry datas
return: SimpleUnzipEntry    Instanced class



Généré le : Mon Nov 26 15:18:20 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics